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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 9712: AppCachePlumbing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
Index: chrome/browser/renderer_host/resource_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 13181)
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -20,6 +20,7 @@
#include "chrome/browser/renderer_host/render_widget_helper.h"
#include "chrome/browser/spellchecker.h"
#include "chrome/browser/worker_host/worker_service.h"
+#include "chrome/common/app_cache/app_cache_dispatcher_host.h"
#include "chrome/common/chrome_plugin_lib.h"
#include "chrome/common/chrome_plugin_util.h"
#include "chrome/common/clipboard_service.h"
@@ -128,6 +129,7 @@
profile_(profile),
render_widget_helper_(render_widget_helper),
audio_renderer_host_(audio_renderer_host),
+ app_cache_dispatcher_host_(new AppCacheDispatcherHost),
off_the_record_(profile->IsOffTheRecord()) {
DCHECK(request_context_.get());
DCHECK(request_context_->cookie_store());
@@ -155,7 +157,7 @@
void ResourceMessageFilter::Init(int render_process_id) {
render_process_id_ = render_process_id;
render_widget_helper_->Init(render_process_id, resource_dispatcher_host_);
-
+ app_cache_dispatcher_host_->Initialize(this);
ExtensionMessageService::GetInstance()->RendererReady(this);
}
@@ -199,7 +201,9 @@
bool ResourceMessageFilter::OnMessageReceived(const IPC::Message& message) {
bool msg_is_ok = true;
bool handled = resource_dispatcher_host_->OnMessageReceived(
- message, this, &msg_is_ok);
+ message, this, &msg_is_ok) ||
+ app_cache_dispatcher_host_->OnMessageReceived(
+ message, &msg_is_ok);
if (!handled) {
handled = true;
IPC_BEGIN_MESSAGE_MAP_EX(ResourceMessageFilter, message, msg_is_ok)

Powered by Google App Engine
This is Rietveld 408576698