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

Side by Side Diff: webkit/browser/appcache/appcache_service.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 (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 WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_ 5 #ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_ 6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // responsibility to ensure that the pointer remains valid while set. 115 // responsibility to ensure that the pointer remains valid while set.
116 AppCachePolicy* appcache_policy() const { return appcache_policy_; } 116 AppCachePolicy* appcache_policy() const { return appcache_policy_; }
117 void set_appcache_policy(AppCachePolicy* policy) { 117 void set_appcache_policy(AppCachePolicy* policy) {
118 appcache_policy_ = policy; 118 appcache_policy_ = policy;
119 } 119 }
120 120
121 // The factory may be null, in which case invocations of exe handlers 121 // The factory may be null, in which case invocations of exe handlers
122 // will result in an error response. 122 // will result in an error response.
123 // The service does NOT assume ownership of the factory, it is the callers 123 // The service does NOT assume ownership of the factory, it is the callers
124 // responsibility to ensure that the pointer remains valid while set. 124 // responsibility to ensure that the pointer remains valid while set.
125 AppCacheExecutableHandlerFactory* handler_factory() const { 125 AppCacheExecutableHandlerFactory* executable_handler_factory() const {
126 return handler_factory_; 126 return executable_handler_factory_;
127 } 127 }
128 void set_handler_factory( 128 void set_executable_handler_factory(
129 AppCacheExecutableHandlerFactory* factory) { 129 AppCacheExecutableHandlerFactory* factory) {
130 handler_factory_ = factory; 130 executable_handler_factory_ = factory;
131 } 131 }
132 132
133 quota::SpecialStoragePolicy* special_storage_policy() const { 133 quota::SpecialStoragePolicy* special_storage_policy() const {
134 return special_storage_policy_.get(); 134 return special_storage_policy_.get();
135 } 135 }
136 void set_special_storage_policy(quota::SpecialStoragePolicy* policy); 136 void set_special_storage_policy(quota::SpecialStoragePolicy* policy);
137 137
138 quota::QuotaManagerProxy* quota_manager_proxy() const { 138 quota::QuotaManagerProxy* quota_manager_proxy() const {
139 return quota_manager_proxy_.get(); 139 return quota_manager_proxy_.get();
140 } 140 }
(...skipping 26 matching lines...) Expand all
167 class DeleteHelper; 167 class DeleteHelper;
168 class DeleteOriginHelper; 168 class DeleteOriginHelper;
169 class GetInfoHelper; 169 class GetInfoHelper;
170 class CheckResponseHelper; 170 class CheckResponseHelper;
171 171
172 typedef std::set<AsyncHelper*> PendingAsyncHelpers; 172 typedef std::set<AsyncHelper*> PendingAsyncHelpers;
173 typedef std::map<int, AppCacheBackendImpl*> BackendMap; 173 typedef std::map<int, AppCacheBackendImpl*> BackendMap;
174 174
175 AppCachePolicy* appcache_policy_; 175 AppCachePolicy* appcache_policy_;
176 AppCacheQuotaClient* quota_client_; 176 AppCacheQuotaClient* quota_client_;
177 AppCacheExecutableHandlerFactory* handler_factory_; 177 AppCacheExecutableHandlerFactory* executable_handler_factory_;
178 scoped_ptr<AppCacheStorage> storage_; 178 scoped_ptr<AppCacheStorage> storage_;
179 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 179 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
180 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; 180 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
181 PendingAsyncHelpers pending_helpers_; 181 PendingAsyncHelpers pending_helpers_;
182 BackendMap backends_; // One 'backend' per child process. 182 BackendMap backends_; // One 'backend' per child process.
183 // Context for use during cache updates. 183 // Context for use during cache updates.
184 net::URLRequestContext* request_context_; 184 net::URLRequestContext* request_context_;
185 // If true, nothing (not even session-only data) should be deleted on exit. 185 // If true, nothing (not even session-only data) should be deleted on exit.
186 bool force_keep_session_state_; 186 bool force_keep_session_state_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(AppCacheService); 188 DISALLOW_COPY_AND_ASSIGN(AppCacheService);
189 }; 189 };
190 190
191 } // namespace appcache 191 } // namespace appcache
192 192
193 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_ 193 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_response.cc ('k') | webkit/browser/appcache/appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698