blob: 78865abec89efab86aa00ce2e27d749f10d18b6d [file] [log] [blame]
[email protected]f430b5712009-08-21 21:46:311// Copyright (c) 2009 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]0082d7e0d2010-02-27 14:34:125#ifndef CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_
6#define CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_
[email protected]f430b5712009-08-21 21:46:317
8#include <vector>
[email protected]0082d7e0d2010-02-27 14:34:129
[email protected]f430b5712009-08-21 21:46:3110#include "ipc/ipc_message.h"
11#include "webkit/appcache/appcache_interfaces.h"
12
13// Sends appcache related messages to a child process.
14class AppCacheFrontendProxy : public appcache::AppCacheFrontend {
15 public:
16 AppCacheFrontendProxy() : sender_(NULL) {}
17 void set_sender(IPC::Message::Sender* sender) { sender_ = sender; }
18 IPC::Message::Sender* sender() const { return sender_; }
19
20 // AppCacheFrontend methods
21 virtual void OnCacheSelected(int host_id, int64 cache_id ,
22 appcache::Status);
23 virtual void OnStatusChanged(const std::vector<int>& host_ids,
24 appcache::Status status);
25 virtual void OnEventRaised(const std::vector<int>& host_ids,
26 appcache::EventID event_id);
27
28 private:
29 IPC::Message::Sender* sender_;
30};
31
[email protected]0082d7e0d2010-02-27 14:34:1232#endif // CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_