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

Side by Side Diff: content/child/appcache/appcache_backend_proxy.h

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHILD_APPCACHE_APPCACHE_BACKEND_PROXY_H_ 5 #ifndef CONTENT_CHILD_APPCACHE_APPCACHE_BACKEND_PROXY_H_
6 #define CONTENT_CHILD_APPCACHE_APPCACHE_BACKEND_PROXY_H_ 6 #define CONTENT_CHILD_APPCACHE_APPCACHE_BACKEND_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
11 #include "webkit/common/appcache/appcache_interfaces.h" 11 #include "webkit/common/appcache/appcache_interfaces.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Sends appcache related messages to the main process. 15 // Sends appcache related messages to the main process.
16 class AppCacheBackendProxy : public appcache::AppCacheBackend { 16 class AppCacheBackendProxy : public appcache::AppCacheBackend {
17 public: 17 public:
18 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {} 18 explicit AppCacheBackendProxy(IPC::Sender* sender) : sender_(sender) {}
19 19
20 IPC::Sender* sender() const { return sender_; } 20 IPC::Sender* sender() const { return sender_; }
21 21
22 // AppCacheBackend methods 22 // AppCacheBackend methods
23 virtual void RegisterHost(int host_id) OVERRIDE; 23 virtual void RegisterHost(int host_id) OVERRIDE;
24 virtual void UnregisterHost(int host_id) OVERRIDE; 24 virtual void UnregisterHost(int host_id) OVERRIDE;
25 virtual void RegisterController(int host_id,
26 const GURL& document_url,
27 const string16& pattern,
28 const GURL& controller_url) OVERRIDE;
29 virtual void UnregisterController(int host_id,
30 const GURL& document_url,
31 const string16& pattern) OVERRIDE;
25 virtual void SetSpawningHostId(int host_id, int spawning_host_id) OVERRIDE; 32 virtual void SetSpawningHostId(int host_id, int spawning_host_id) OVERRIDE;
26 virtual void SelectCache(int host_id, 33 virtual void SelectCache(int host_id,
27 const GURL& document_url, 34 const GURL& document_url,
28 const int64 cache_document_was_loaded_from, 35 const int64 cache_document_was_loaded_from,
29 const GURL& manifest_url) OVERRIDE; 36 const GURL& manifest_url) OVERRIDE;
30 virtual void SelectCacheForWorker( 37 virtual void SelectCacheForWorker(
31 int host_id, 38 int host_id,
32 int parent_process_id, 39 int parent_process_id,
33 int parent_host_id) OVERRIDE; 40 int parent_host_id) OVERRIDE;
34 virtual void SelectCacheForSharedWorker( 41 virtual void SelectCacheForSharedWorker(
35 int host_id, 42 int host_id,
36 int64 appcache_id) OVERRIDE; 43 int64 appcache_id) OVERRIDE;
37 virtual void MarkAsForeignEntry( 44 virtual void MarkAsForeignEntry(
38 int host_id, 45 int host_id,
39 const GURL& document_url, 46 const GURL& document_url,
40 int64 cache_document_was_loaded_from) OVERRIDE; 47 int64 cache_document_was_loaded_from) OVERRIDE;
41 virtual appcache::Status GetStatus(int host_id) OVERRIDE; 48 virtual appcache::Status GetStatus(int host_id) OVERRIDE;
42 virtual bool StartUpdate(int host_id) OVERRIDE; 49 virtual bool StartUpdate(int host_id) OVERRIDE;
43 virtual bool SwapCache(int host_id) OVERRIDE; 50 virtual bool SwapCache(int host_id) OVERRIDE;
44 virtual void GetResourceList( 51 virtual void GetResourceList(
45 int host_id, 52 int host_id,
46 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE; 53 std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE;
47 54
48 private: 55 private:
49 IPC::Sender* sender_; 56 IPC::Sender* sender_;
50 }; 57 };
51 58
52 } // namespace content 59 } // namespace content
53 60
54 #endif // CONTENT_CHILD_APPCACHE_APPCACHE_BACKEND_PROXY_H_ 61 #endif // CONTENT_CHILD_APPCACHE_APPCACHE_BACKEND_PROXY_H_
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_service_impl.cc ('k') | content/child/appcache/appcache_backend_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698