Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / content / child / appcache / appcache_backend_proxy.cc
blobbf3149409f9cb9a9fca9b41090bf85a623d6bd19
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 AppCacheStatus AppCacheBackendProxy::GetStatus(int host_id) {
58 AppCacheStatus status = APPCACHE_STATUS_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<AppCacheResourceInfo>* resource_infos) {
77 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos));
80 } // namespace content