| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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 | |
| 5 #ifndef CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ | |
| 6 #define CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 #include <vector> | |
| 11 | |
| 12 #include "ipc/ipc_message.h" | |
| 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: | |
| 18 explicit AppCacheFrontendProxy(IPC::Message::Sender* sender); | |
| 19 | |
| 20 // AppCacheFrontend methods | |
| 21 virtual void OnCacheSelected(int host_id, const appcache::AppCacheInfo& info); | |
| 22 virtual void OnStatusChanged(const std::vector<int>& host_ids, | |
| 23 appcache::Status status); | |
| 24 virtual void OnEventRaised(const std::vector<int>& host_ids, | |
| 25 appcache::EventID event_id); | |
| 26 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, | |
| 27 const GURL& url, | |
| 28 int num_total, int num_complete); | |
| 29 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, | |
| 30 const std::string& message); | |
| 31 virtual void OnLogMessage(int host_id, appcache::LogLevel log_level, | |
| 32 const std::string& message); | |
| 33 virtual void OnContentBlocked(int host_id, | |
| 34 const GURL& manifest_url); | |
| 35 | |
| 36 private: | |
| 37 IPC::Message::Sender* sender_; | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ | |
| OLD | NEW |