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

Side by Side Diff: content/common/appcache/appcache_backend_proxy.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_BACKEND_PROXY_H_ 5 #ifndef CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_
6 #define CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ 6 #define CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_
7 7
8 #include "ipc/ipc_sender.h" 8 #include "ipc/ipc_sender.h"
9 #include "webkit/appcache/appcache_interfaces.h" 9 #include "webkit/appcache/appcache_interfaces.h"
10 10
11 namespace content {
12
11 // Sends appcache related messages to the main process. 13 // Sends appcache related messages to the main process.
12 class AppCacheBackendProxy : public appcache::AppCacheBackend { 14 class AppCacheBackendProxy : public appcache::AppCacheBackend {
13 public: 15 public:
14 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {} 16 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {}
15 17
16 IPC::Sender* sender() const { return sender_; } 18 IPC::Sender* sender() const { return sender_; }
17 19
18 // AppCacheBackend methods 20 // AppCacheBackend methods
19 virtual void RegisterHost(int host_id) OVERRIDE; 21 virtual void RegisterHost(int host_id) OVERRIDE;
20 virtual void UnregisterHost(int host_id) OVERRIDE; 22 virtual void UnregisterHost(int host_id) OVERRIDE;
(...skipping 17 matching lines...) Expand all
38 virtual bool StartUpdate(int host_id) OVERRIDE; 40 virtual bool StartUpdate(int host_id) OVERRIDE;
39 virtual bool SwapCache(int host_id) OVERRIDE; 41 virtual bool SwapCache(int host_id) OVERRIDE;
40 virtual void GetResourceList( 42 virtual void GetResourceList(
41 int host_id, 43 int host_id,
42 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE; 44 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE;
43 45
44 private: 46 private:
45 IPC::Sender* sender_; 47 IPC::Sender* sender_;
46 }; 48 };
47 49
50 } // namespace content
51
48 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_ 52 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_BACKEND_PROXY_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/image_transport_factory_android.h ('k') | content/common/appcache/appcache_backend_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698