Use ExtensionRegistry::enabled_extensions instead of deprecated ExtensionService...
[chromium-blink-merge.git] / content / child / appcache / appcache_backend_proxy.cc
blob8f9d06a3912b172cd72e838b1ec9a800ae1695a7
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
3 // found in the LICENSE file.
5 #include "content/child/appcache/appcache_backend_proxy.h"
7 #include "content/common/appcache_messages.h"
9 namespace content {
11 void AppCacheBackendProxy::RegisterHost(int host_id) {
12 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id));
15 void AppCacheBackendProxy::UnregisterHost(int host_id) {
16 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id));
19 void AppCacheBackendProxy::SetSpawningHostId(int host_id,
20 int spawning_host_id) {
21 sender_->Send(new AppCacheHostMsg_SetSpawningHostId(
22 host_id, spawning_host_id));
25 void AppCacheBackendProxy::SelectCache(
26 int host_id,
27 const GURL& document_url,
28 const int64 cache_document_was_loaded_from,
29 const GURL& manifest_url) {
30 sender_->Send(new AppCacheHostMsg_SelectCache(
31 host_id, document_url,
32 cache_document_was_loaded_from,
33 manifest_url));
36 void AppCacheBackendProxy::SelectCacheForWorker(
37 int host_id, int parent_process_id, int parent_host_id) {
38 sender_->Send(new AppCacheHostMsg_SelectCacheForWorker(
39 host_id, parent_process_id,
40 parent_host_id));
43 void AppCacheBackendProxy::SelectCacheForSharedWorker(
44 int host_id, int64 appcache_id) {
45 sender_->Send(new AppCacheHostMsg_SelectCacheForSharedWorker(
46 host_id, appcache_id));
49 void AppCacheBackendProxy::MarkAsForeignEntry(
50 int host_id, const GURL& document_url,
51 int64 cache_document_was_loaded_from) {
52 sender_->Send(new AppCacheHostMsg_MarkAsForeignEntry(
53 host_id, document_url,
54 cache_document_was_loaded_from));
57 appcache::Status AppCacheBackendProxy::GetStatus(int host_id) {
58 appcache::Status status = appcache::UNCACHED;
59 sender_->Send(new AppCacheHostMsg_GetStatus(host_id, &status));
60 return status;
63 bool AppCacheBackendProxy::StartUpdate(int host_id) {
64 bool result = false;
65 sender_->Send(new AppCacheHostMsg_StartUpdate(host_id, &result));
66 return result;
69 bool AppCacheBackendProxy::SwapCache(int host_id) {
70 bool result = false;
71 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result));
72 return result;
75 void AppCacheBackendProxy::GetResourceList(
76 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) {
77 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos));
80 } // namespace content