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

Unified Diff: content/common/appcache/appcache_backend_proxy.cc

Issue 6691002: Move AppCache common code to content and split off AppCache messages into the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/appcache/appcache_backend_proxy.h ('k') | content/common/appcache/appcache_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/appcache/appcache_backend_proxy.cc
===================================================================
--- content/common/appcache/appcache_backend_proxy.cc (revision 77976)
+++ content/common/appcache/appcache_backend_proxy.cc (working copy)
@@ -1,17 +1,17 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/appcache/appcache_backend_proxy.h"
+#include "content/common/appcache/appcache_backend_proxy.h"
-#include "chrome/common/render_messages.h"
+#include "content/common/appcache_messages.h"
void AppCacheBackendProxy::RegisterHost(int host_id) {
- sender_->Send(new AppCacheMsg_RegisterHost(host_id));
+ sender_->Send(new AppCacheHostMsg_RegisterHost(host_id));
}
void AppCacheBackendProxy::UnregisterHost(int host_id) {
- sender_->Send(new AppCacheMsg_UnregisterHost(host_id));
+ sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id));
}
void AppCacheBackendProxy::SelectCache(
@@ -19,7 +19,7 @@
const GURL& document_url,
const int64 cache_document_was_loaded_from,
const GURL& manifest_url) {
- sender_->Send(new AppCacheMsg_SelectCache(
+ sender_->Send(new AppCacheHostMsg_SelectCache(
host_id, document_url,
cache_document_was_loaded_from,
manifest_url));
@@ -27,44 +27,44 @@
void AppCacheBackendProxy::SelectCacheForWorker(
int host_id, int parent_process_id, int parent_host_id) {
- sender_->Send(new AppCacheMsg_SelectCacheForWorker(
+ sender_->Send(new AppCacheHostMsg_SelectCacheForWorker(
host_id, parent_process_id,
parent_host_id));
}
void AppCacheBackendProxy::SelectCacheForSharedWorker(
int host_id, int64 appcache_id) {
- sender_->Send(new AppCacheMsg_SelectCacheForSharedWorker(
+ sender_->Send(new AppCacheHostMsg_SelectCacheForSharedWorker(
host_id, appcache_id));
}
void AppCacheBackendProxy::MarkAsForeignEntry(
int host_id, const GURL& document_url,
int64 cache_document_was_loaded_from) {
- sender_->Send(new AppCacheMsg_MarkAsForeignEntry(
+ sender_->Send(new AppCacheHostMsg_MarkAsForeignEntry(
host_id, document_url,
cache_document_was_loaded_from));
}
appcache::Status AppCacheBackendProxy::GetStatus(int host_id) {
appcache::Status status = appcache::UNCACHED;
- sender_->Send(new AppCacheMsg_GetStatus(host_id, &status));
+ sender_->Send(new AppCacheHostMsg_GetStatus(host_id, &status));
return status;
}
bool AppCacheBackendProxy::StartUpdate(int host_id) {
bool result = false;
- sender_->Send(new AppCacheMsg_StartUpdate(host_id, &result));
+ sender_->Send(new AppCacheHostMsg_StartUpdate(host_id, &result));
return result;
}
bool AppCacheBackendProxy::SwapCache(int host_id) {
bool result = false;
- sender_->Send(new AppCacheMsg_SwapCache(host_id, &result));
+ sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result));
return result;
}
void AppCacheBackendProxy::GetResourceList(
int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) {
- sender_->Send(new AppCacheMsg_GetResourceList(host_id, resource_infos));
+ sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos));
}
« no previous file with comments | « content/common/appcache/appcache_backend_proxy.h ('k') | content/common/appcache/appcache_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698