OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/appcache/appcache_backend_proxy.h" | 5 #include "content/child/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 { | 9 namespace content { |
10 | 10 |
11 void AppCacheBackendProxy::RegisterHost(int host_id) { | 11 void AppCacheBackendProxy::RegisterHost(int host_id) { |
12 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id)); | 12 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id)); |
13 } | 13 } |
14 | 14 |
15 void AppCacheBackendProxy::UnregisterHost(int host_id) { | 15 void AppCacheBackendProxy::UnregisterHost(int host_id) { |
16 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id)); | 16 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id)); |
17 } | 17 } |
18 | 18 |
| 19 void AppCacheBackendProxy::RegisterController(int host_id, |
| 20 const GURL& document_url, |
| 21 const string16& pattern, |
| 22 const GURL& controller_url) { |
| 23 sender_->Send(new AppCacheHostMsg_RegisterController(host_id, |
| 24 document_url, |
| 25 pattern, |
| 26 controller_url)); |
| 27 } |
| 28 |
| 29 void AppCacheBackendProxy::UnregisterController(int host_id, |
| 30 const GURL& document_url, |
| 31 const string16& pattern) { |
| 32 sender_->Send(new AppCacheHostMsg_UnregisterController(host_id, |
| 33 document_url, |
| 34 pattern)); |
| 35 } |
| 36 |
19 void AppCacheBackendProxy::SetSpawningHostId(int host_id, | 37 void AppCacheBackendProxy::SetSpawningHostId(int host_id, |
20 int spawning_host_id) { | 38 int spawning_host_id) { |
21 sender_->Send(new AppCacheHostMsg_SetSpawningHostId( | 39 sender_->Send(new AppCacheHostMsg_SetSpawningHostId( |
22 host_id, spawning_host_id)); | 40 host_id, spawning_host_id)); |
23 } | 41 } |
24 | 42 |
25 void AppCacheBackendProxy::SelectCache( | 43 void AppCacheBackendProxy::SelectCache( |
26 int host_id, | 44 int host_id, |
27 const GURL& document_url, | 45 const GURL& document_url, |
28 const int64 cache_document_was_loaded_from, | 46 const int64 cache_document_was_loaded_from, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); | 89 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); |
72 return result; | 90 return result; |
73 } | 91 } |
74 | 92 |
75 void AppCacheBackendProxy::GetResourceList( | 93 void AppCacheBackendProxy::GetResourceList( |
76 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { | 94 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { |
77 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); | 95 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); |
78 } | 96 } |
79 | 97 |
80 } // namespace content | 98 } // namespace content |
OLD | NEW |