Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: content/child/appcache/appcache_backend_proxy.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 void AppCacheBackendProxy::MarkAsForeignEntry( 49 void AppCacheBackendProxy::MarkAsForeignEntry(
50 int host_id, const GURL& document_url, 50 int host_id, const GURL& document_url,
51 int64 cache_document_was_loaded_from) { 51 int64 cache_document_was_loaded_from) {
52 sender_->Send(new AppCacheHostMsg_MarkAsForeignEntry( 52 sender_->Send(new AppCacheHostMsg_MarkAsForeignEntry(
53 host_id, document_url, 53 host_id, document_url,
54 cache_document_was_loaded_from)); 54 cache_document_was_loaded_from));
55 } 55 }
56 56
57 appcache::AppCacheStatus AppCacheBackendProxy::GetStatus(int host_id) { 57 AppCacheStatus AppCacheBackendProxy::GetStatus(int host_id) {
58 appcache::AppCacheStatus status = appcache::APPCACHE_STATUS_UNCACHED; 58 AppCacheStatus status = APPCACHE_STATUS_UNCACHED;
59 sender_->Send(new AppCacheHostMsg_GetStatus(host_id, &status)); 59 sender_->Send(new AppCacheHostMsg_GetStatus(host_id, &status));
60 return status; 60 return status;
61 } 61 }
62 62
63 bool AppCacheBackendProxy::StartUpdate(int host_id) { 63 bool AppCacheBackendProxy::StartUpdate(int host_id) {
64 bool result = false; 64 bool result = false;
65 sender_->Send(new AppCacheHostMsg_StartUpdate(host_id, &result)); 65 sender_->Send(new AppCacheHostMsg_StartUpdate(host_id, &result));
66 return result; 66 return result;
67 } 67 }
68 68
69 bool AppCacheBackendProxy::SwapCache(int host_id) { 69 bool AppCacheBackendProxy::SwapCache(int host_id) {
70 bool result = false; 70 bool result = false;
71 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); 71 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result));
72 return result; 72 return result;
73 } 73 }
74 74
75 void AppCacheBackendProxy::GetResourceList( 75 void AppCacheBackendProxy::GetResourceList(
76 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { 76 int host_id, std::vector<AppCacheResourceInfo>* resource_infos) {
77 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); 77 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos));
78 } 78 }
79 79
80 } // namespace content 80 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698