OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | |
8 | 7 |
9 #include "ipc/ipc_sender.h" | 8 #include "ipc/ipc_sender.h" |
10 #include "webkit/appcache/appcache_interfaces.h" | 9 #include "webkit/appcache/appcache_interfaces.h" |
11 | 10 |
12 // Sends appcache related messages to the main process. | 11 // Sends appcache related messages to the main process. |
13 class AppCacheBackendProxy : public appcache::AppCacheBackend { | 12 class AppCacheBackendProxy : public appcache::AppCacheBackend { |
14 public: | 13 public: |
15 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {} | 14 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {} |
16 | 15 |
17 IPC::Sender* sender() const { return sender_; } | 16 IPC::Sender* sender() const { return sender_; } |
(...skipping 22 matching lines...) Expand all Loading... |
40 virtual bool SwapCache(int host_id) OVERRIDE; | 39 virtual bool SwapCache(int host_id) OVERRIDE; |
41 virtual void GetResourceList( | 40 virtual void GetResourceList( |
42 int host_id, | 41 int host_id, |
43 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE; | 42 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE; |
44 | 43 |
45 private: | 44 private: |
46 IPC::Sender* sender_; | 45 IPC::Sender* sender_; |
47 }; | 46 }; |
48 | 47 |
49 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ | 48 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ |
OLD | NEW |