| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ | 5 #ifndef CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ |
| 6 #define CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ | 6 #define CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ |
| 7 | 7 |
| 8 #include "ipc/ipc_sender.h" | 8 #include "ipc/ipc_sender.h" |
| 9 #include "webkit/appcache/appcache_interfaces.h" | 9 #include "webkit/appcache/appcache_interfaces.h" |
| 10 | 10 |
| 11 namespace content { |
| 12 |
| 11 // Sends appcache related messages to the main process. | 13 // Sends appcache related messages to the main process. |
| 12 class AppCacheBackendProxy : public appcache::AppCacheBackend { | 14 class AppCacheBackendProxy : public appcache::AppCacheBackend { |
| 13 public: | 15 public: |
| 14 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {} | 16 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {} |
| 15 | 17 |
| 16 IPC::Sender* sender() const { return sender_; } | 18 IPC::Sender* sender() const { return sender_; } |
| 17 | 19 |
| 18 // AppCacheBackend methods | 20 // AppCacheBackend methods |
| 19 virtual void RegisterHost(int host_id) OVERRIDE; | 21 virtual void RegisterHost(int host_id) OVERRIDE; |
| 20 virtual void UnregisterHost(int host_id) OVERRIDE; | 22 virtual void UnregisterHost(int host_id) OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 virtual bool StartUpdate(int host_id) OVERRIDE; | 40 virtual bool StartUpdate(int host_id) OVERRIDE; |
| 39 virtual bool SwapCache(int host_id) OVERRIDE; | 41 virtual bool SwapCache(int host_id) OVERRIDE; |
| 40 virtual void GetResourceList( | 42 virtual void GetResourceList( |
| 41 int host_id, | 43 int host_id, |
| 42 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE; | 44 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE; |
| 43 | 45 |
| 44 private: | 46 private: |
| 45 IPC::Sender* sender_; | 47 IPC::Sender* sender_; |
| 46 }; | 48 }; |
| 47 | 49 |
| 50 } // namespace content |
| 51 |
| 48 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ | 52 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ |
| OLD | NEW |