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 #include "content/common/appcache/appcache_backend_proxy.h" | 5 #include "content/common/appcache/appcache_backend_proxy.h" |
6 | 6 |
7 #include "content/common/appcache_messages.h" | 7 #include "content/common/appcache_messages.h" |
8 | 8 |
| 9 namespace content { |
| 10 |
9 void AppCacheBackendProxy::RegisterHost(int host_id) { | 11 void AppCacheBackendProxy::RegisterHost(int host_id) { |
10 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id)); | 12 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id)); |
11 } | 13 } |
12 | 14 |
13 void AppCacheBackendProxy::UnregisterHost(int host_id) { | 15 void AppCacheBackendProxy::UnregisterHost(int host_id) { |
14 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id)); | 16 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id)); |
15 } | 17 } |
16 | 18 |
17 void AppCacheBackendProxy::SetSpawningHostId(int host_id, | 19 void AppCacheBackendProxy::SetSpawningHostId(int host_id, |
18 int spawning_host_id) { | 20 int spawning_host_id) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool AppCacheBackendProxy::SwapCache(int host_id) { | 69 bool AppCacheBackendProxy::SwapCache(int host_id) { |
68 bool result = false; | 70 bool result = false; |
69 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); | 71 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); |
70 return result; | 72 return result; |
71 } | 73 } |
72 | 74 |
73 void AppCacheBackendProxy::GetResourceList( | 75 void AppCacheBackendProxy::GetResourceList( |
74 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { | 76 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { |
75 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); | 77 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); |
76 } | 78 } |
| 79 |
| 80 } // namespace content |
OLD | NEW |