[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 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] | 1eaa4f7 | 2011-02-24 23:37:35 | [diff] [blame] | 5 | #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ |
| 6 | #define CONTENT_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ |
[email protected] | 32b76ef | 2010-07-26 23:08:24 | [diff] [blame] | 7 | #pragma once |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 8 | |
[email protected] | ec5c192 | 2010-07-28 03:14:37 | [diff] [blame] | 9 | #include <string> |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 10 | #include <vector> |
[email protected] | 0082d7e0d | 2010-02-27 14:34:12 | [diff] [blame] | 11 | |
[email protected] | d84effeb | 2012-06-25 17:03:10 | [diff] [blame^] | 12 | #include "ipc/ipc_sender.h" |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 13 | #include "webkit/appcache/appcache_interfaces.h" |
| 14 | |
| 15 | // Sends appcache related messages to a child process. |
| 16 | class AppCacheFrontendProxy : public appcache::AppCacheFrontend { |
| 17 | public: |
[email protected] | d84effeb | 2012-06-25 17:03:10 | [diff] [blame^] | 18 | explicit AppCacheFrontendProxy(IPC::Sender* sender); |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 19 | |
| 20 | // AppCacheFrontend methods |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 21 | virtual void OnCacheSelected(int host_id, |
| 22 | const appcache::AppCacheInfo& info) OVERRIDE; |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 23 | virtual void OnStatusChanged(const std::vector<int>& host_ids, |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 24 | appcache::Status status) OVERRIDE; |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 25 | virtual void OnEventRaised(const std::vector<int>& host_ids, |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 26 | appcache::EventID event_id) OVERRIDE; |
[email protected] | 697af4a | 2010-05-25 21:15:31 | [diff] [blame] | 27 | virtual void OnProgressEventRaised(const std::vector<int>& host_ids, |
| 28 | const GURL& url, |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 29 | int num_total, int num_complete) OVERRIDE; |
[email protected] | 097dde2 | 2010-07-14 02:31:55 | [diff] [blame] | 30 | virtual void OnErrorEventRaised(const std::vector<int>& host_ids, |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 31 | const std::string& message) OVERRIDE; |
[email protected] | 53c570b | 2010-06-18 02:02:05 | [diff] [blame] | 32 | virtual void OnLogMessage(int host_id, appcache::LogLevel log_level, |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 33 | const std::string& message) OVERRIDE; |
[email protected] | 5c7d598 | 2010-07-12 09:12:59 | [diff] [blame] | 34 | virtual void OnContentBlocked(int host_id, |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 35 | const GURL& manifest_url) OVERRIDE; |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 36 | |
| 37 | private: |
[email protected] | d84effeb | 2012-06-25 17:03:10 | [diff] [blame^] | 38 | IPC::Sender* sender_; |
[email protected] | f430b571 | 2009-08-21 21:46:31 | [diff] [blame] | 39 | }; |
| 40 | |
[email protected] | 1eaa4f7 | 2011-02-24 23:37:35 | [diff] [blame] | 41 | #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ |