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

Side by Side Diff: content/browser/appcache/appcache_dispatcher_host.h

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Address review comments Created 4 years 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
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_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void OnGetStatus(int host_id, IPC::Message* reply_msg); 55 void OnGetStatus(int host_id, IPC::Message* reply_msg);
56 void OnStartUpdate(int host_id, IPC::Message* reply_msg); 56 void OnStartUpdate(int host_id, IPC::Message* reply_msg);
57 void OnSwapCache(int host_id, IPC::Message* reply_msg); 57 void OnSwapCache(int host_id, IPC::Message* reply_msg);
58 void OnGetResourceList( 58 void OnGetResourceList(
59 int host_id, 59 int host_id,
60 std::vector<AppCacheResourceInfo>* resource_infos); 60 std::vector<AppCacheResourceInfo>* resource_infos);
61 void GetStatusCallback(AppCacheStatus status, void* param); 61 void GetStatusCallback(AppCacheStatus status, void* param);
62 void StartUpdateCallback(bool result, void* param); 62 void StartUpdateCallback(bool result, void* param);
63 void SwapCacheCallback(bool result, void* param); 63 void SwapCacheCallback(bool result, void* param);
64 64
65
66 scoped_refptr<ChromeAppCacheService> appcache_service_; 65 scoped_refptr<ChromeAppCacheService> appcache_service_;
67 AppCacheFrontendProxy frontend_proxy_; 66 AppCacheFrontendProxy frontend_proxy_;
68 AppCacheBackendImpl backend_impl_; 67 AppCacheBackendImpl backend_impl_;
69 68
70 content::GetStatusCallback get_status_callback_; 69 content::GetStatusCallback get_status_callback_;
71 content::StartUpdateCallback start_update_callback_; 70 content::StartUpdateCallback start_update_callback_;
72 content::SwapCacheCallback swap_cache_callback_; 71 content::SwapCacheCallback swap_cache_callback_;
73 std::unique_ptr<IPC::Message> pending_reply_msg_; 72 std::unique_ptr<IPC::Message> pending_reply_msg_;
74 73
75 // The corresponding ChildProcessHost object's id(). 74 // The corresponding ChildProcessHost object's id().
76 int process_id_; 75 int process_id_;
77 76
78 base::WeakPtrFactory<AppCacheDispatcherHost> weak_factory_; 77 base::WeakPtrFactory<AppCacheDispatcherHost> weak_factory_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); 79 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost);
81 }; 80 };
82 81
83 } // namespace content 82 } // namespace content
84 83
85 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 84 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_backend_impl.cc ('k') | content/browser/appcache/appcache_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698