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

Side by Side Diff: chrome/browser/appcache/appcache_dispatcher_host.cc

Issue 661178: Continue removing bad dependency of chrome/common on chrome/browser... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/common/appcache/appcache_dispatcher_host.h" 5 #include "chrome/browser/appcache/appcache_dispatcher_host.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "chrome/browser/appcache/chrome_appcache_service.h"
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" 9 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 // TODO(eroman): uh oh, depending on stuff outside of common/
10 #include "chrome/browser/net/chrome_url_request_context.h" 10 #include "chrome/browser/net/chrome_url_request_context.h"
11 #include "chrome/common/appcache/chrome_appcache_service.h"
12 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
13 12
14 AppCacheDispatcherHost::AppCacheDispatcherHost( 13 AppCacheDispatcherHost::AppCacheDispatcherHost(
15 URLRequestContextGetter* request_context_getter) 14 URLRequestContextGetter* request_context_getter)
16 : request_context_getter_(request_context_getter), 15 : request_context_getter_(request_context_getter),
17 process_handle_(0) { 16 process_handle_(0) {
18 DCHECK(request_context_getter_.get()); 17 DCHECK(request_context_getter_.get());
19 } 18 }
20 19
21 void AppCacheDispatcherHost::Initialize(IPC::Message::Sender* sender, 20 void AppCacheDispatcherHost::Initialize(IPC::Message::Sender* sender,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 AppCacheMsg_SwapCache::WriteReplyParams(reply_msg, result); 186 AppCacheMsg_SwapCache::WriteReplyParams(reply_msg, result);
188 frontend_proxy_.sender()->Send(pending_reply_msg_.release()); 187 frontend_proxy_.sender()->Send(pending_reply_msg_.release());
189 } 188 }
190 189
191 void AppCacheDispatcherHost::ReceivedBadMessage(uint32 msg_type) { 190 void AppCacheDispatcherHost::ReceivedBadMessage(uint32 msg_type) {
192 // TODO(michaeln): Consider gathering UMA stats 191 // TODO(michaeln): Consider gathering UMA stats
193 // http://code.google.com/p/chromium/issues/detail?id=24634 192 // http://code.google.com/p/chromium/issues/detail?id=24634
194 BrowserRenderProcessHost::BadMessageTerminateProcess( 193 BrowserRenderProcessHost::BadMessageTerminateProcess(
195 msg_type, process_handle_); 194 msg_type, process_handle_);
196 } 195 }
OLDNEW
« no previous file with comments | « chrome/browser/appcache/appcache_dispatcher_host.h ('k') | chrome/browser/appcache/appcache_frontend_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698