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

Side by Side Diff: content/common/appcache/appcache_dispatcher.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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
« no previous file with comments | « content/common/appcache/appcache_dispatcher.h ('k') | content/common/child_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common/appcache/appcache_dispatcher.h" 5 #include "content/common/appcache/appcache_dispatcher.h"
6 6
7 #include "content/common/appcache_messages.h" 7 #include "content/common/appcache_messages.h"
8 #include "webkit/appcache/web_application_cache_host_impl.h" 8 #include "webkit/appcache/web_application_cache_host_impl.h"
9 9
10 namespace content {
11
10 bool AppCacheDispatcher::OnMessageReceived(const IPC::Message& msg) { 12 bool AppCacheDispatcher::OnMessageReceived(const IPC::Message& msg) {
11 bool handled = true; 13 bool handled = true;
12 IPC_BEGIN_MESSAGE_MAP(AppCacheDispatcher, msg) 14 IPC_BEGIN_MESSAGE_MAP(AppCacheDispatcher, msg)
13 IPC_MESSAGE_HANDLER(AppCacheMsg_CacheSelected, OnCacheSelected) 15 IPC_MESSAGE_HANDLER(AppCacheMsg_CacheSelected, OnCacheSelected)
14 IPC_MESSAGE_HANDLER(AppCacheMsg_StatusChanged, OnStatusChanged) 16 IPC_MESSAGE_HANDLER(AppCacheMsg_StatusChanged, OnStatusChanged)
15 IPC_MESSAGE_HANDLER(AppCacheMsg_EventRaised, OnEventRaised) 17 IPC_MESSAGE_HANDLER(AppCacheMsg_EventRaised, OnEventRaised)
16 IPC_MESSAGE_HANDLER(AppCacheMsg_ProgressEventRaised, OnProgressEventRaised) 18 IPC_MESSAGE_HANDLER(AppCacheMsg_ProgressEventRaised, OnProgressEventRaised)
17 IPC_MESSAGE_HANDLER(AppCacheMsg_ErrorEventRaised, OnErrorEventRaised) 19 IPC_MESSAGE_HANDLER(AppCacheMsg_ErrorEventRaised, OnErrorEventRaised)
18 IPC_MESSAGE_HANDLER(AppCacheMsg_LogMessage, OnLogMessage) 20 IPC_MESSAGE_HANDLER(AppCacheMsg_LogMessage, OnLogMessage)
19 IPC_MESSAGE_HANDLER(AppCacheMsg_ContentBlocked, OnContentBlocked) 21 IPC_MESSAGE_HANDLER(AppCacheMsg_ContentBlocked, OnContentBlocked)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void AppCacheDispatcher::OnLogMessage( 54 void AppCacheDispatcher::OnLogMessage(
53 int host_id, int log_level, const std::string& message) { 55 int host_id, int log_level, const std::string& message) {
54 frontend_impl_.OnLogMessage( 56 frontend_impl_.OnLogMessage(
55 host_id, static_cast<appcache::LogLevel>(log_level), message); 57 host_id, static_cast<appcache::LogLevel>(log_level), message);
56 } 58 }
57 59
58 void AppCacheDispatcher::OnContentBlocked(int host_id, 60 void AppCacheDispatcher::OnContentBlocked(int host_id,
59 const GURL& manifest_url) { 61 const GURL& manifest_url) {
60 frontend_impl_.OnContentBlocked(host_id, manifest_url); 62 frontend_impl_.OnContentBlocked(host_id, manifest_url);
61 } 63 }
64
65 } // namespace content
OLDNEW
« no previous file with comments | « content/common/appcache/appcache_dispatcher.h ('k') | content/common/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698