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 void AppCacheBackendProxy::RegisterHost(int host_id) { | 9 void AppCacheBackendProxy::RegisterHost(int host_id) { |
10 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id)); | 10 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id)); |
11 } | 11 } |
12 | 12 |
13 void AppCacheBackendProxy::UnregisterHost(int host_id) { | 13 void AppCacheBackendProxy::UnregisterHost(int host_id) { |
14 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id)); | 14 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id)); |
15 } | 15 } |
16 | 16 |
| 17 void AppCacheBackendProxy::SetSpawningHostId(int host_id, |
| 18 int spawning_host_id) { |
| 19 sender_->Send(new AppCacheHostMsg_SetSpawningHostId( |
| 20 host_id, spawning_host_id)); |
| 21 } |
| 22 |
17 void AppCacheBackendProxy::SelectCache( | 23 void AppCacheBackendProxy::SelectCache( |
18 int host_id, | 24 int host_id, |
19 const GURL& document_url, | 25 const GURL& document_url, |
20 const int64 cache_document_was_loaded_from, | 26 const int64 cache_document_was_loaded_from, |
21 const GURL& manifest_url) { | 27 const GURL& manifest_url) { |
22 sender_->Send(new AppCacheHostMsg_SelectCache( | 28 sender_->Send(new AppCacheHostMsg_SelectCache( |
23 host_id, document_url, | 29 host_id, document_url, |
24 cache_document_was_loaded_from, | 30 cache_document_was_loaded_from, |
25 manifest_url)); | 31 manifest_url)); |
26 } | 32 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool AppCacheBackendProxy::SwapCache(int host_id) { | 67 bool AppCacheBackendProxy::SwapCache(int host_id) { |
62 bool result = false; | 68 bool result = false; |
63 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); | 69 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); |
64 return result; | 70 return result; |
65 } | 71 } |
66 | 72 |
67 void AppCacheBackendProxy::GetResourceList( | 73 void AppCacheBackendProxy::GetResourceList( |
68 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { | 74 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { |
69 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); | 75 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); |
70 } | 76 } |
OLD | NEW |