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

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

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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_
6 #define CONTENT_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ 6 #define CONTENT_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "content/common/appcache/appcache_backend_proxy.h" 11 #include "content/common/appcache/appcache_backend_proxy.h"
12 #include "ipc/ipc_listener.h" 12 #include "ipc/ipc_listener.h"
13 #include "webkit/appcache/appcache_frontend_impl.h" 13 #include "webkit/appcache/appcache_frontend_impl.h"
14 14
15 namespace content {
16
15 // Dispatches appcache related messages sent to a child process from the 17 // Dispatches appcache related messages sent to a child process from the
16 // main browser process. There is one instance per child process. Messages 18 // main browser process. There is one instance per child process. Messages
17 // are dispatched on the main child thread. The ChildThread base class 19 // are dispatched on the main child thread. The ChildThread base class
18 // creates an instance and delegates calls to it. 20 // creates an instance and delegates calls to it.
19 class AppCacheDispatcher : public IPC::Listener { 21 class AppCacheDispatcher : public IPC::Listener {
20 public: 22 public:
21 explicit AppCacheDispatcher(IPC::Sender* sender) : backend_proxy_(sender) {} 23 explicit AppCacheDispatcher(IPC::Sender* sender) : backend_proxy_(sender) {}
22 24
23 AppCacheBackendProxy* backend_proxy() { return &backend_proxy_; } 25 AppCacheBackendProxy* backend_proxy() { return &backend_proxy_; }
24 26
(...skipping 12 matching lines...) Expand all
37 void OnErrorEventRaised(const std::vector<int>& host_ids, 39 void OnErrorEventRaised(const std::vector<int>& host_ids,
38 const std::string& message); 40 const std::string& message);
39 void OnLogMessage(int host_id, int log_level, const std::string& message); 41 void OnLogMessage(int host_id, int log_level, const std::string& message);
40 void OnContentBlocked(int host_id, 42 void OnContentBlocked(int host_id,
41 const GURL& manifest_url); 43 const GURL& manifest_url);
42 44
43 AppCacheBackendProxy backend_proxy_; 45 AppCacheBackendProxy backend_proxy_;
44 appcache::AppCacheFrontendImpl frontend_impl_; 46 appcache::AppCacheFrontendImpl frontend_impl_;
45 }; 47 };
46 48
49 } // namespace content
50
47 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ 51 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/appcache/appcache_backend_proxy.cc ('k') | content/common/appcache/appcache_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698