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

Side by Side Diff: chrome/browser/net/chrome_url_request_context.h

Issue 3394003: Add Worker support for FileSystem API. (Closed)
Patch Set: '' Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/linked_ptr.h" 14 #include "base/linked_ptr.h"
15 #include "chrome/browser/appcache/chrome_appcache_service.h" 15 #include "chrome/browser/appcache/chrome_appcache_service.h"
16 #include "chrome/browser/chrome_blob_storage_context.h" 16 #include "chrome/browser/chrome_blob_storage_context.h"
17 #include "chrome/browser/file_system/file_system_host_context.h"
17 #include "chrome/browser/host_content_settings_map.h" 18 #include "chrome/browser/host_content_settings_map.h"
18 #include "chrome/browser/host_zoom_map.h" 19 #include "chrome/browser/host_zoom_map.h"
19 #include "chrome/browser/io_thread.h" 20 #include "chrome/browser/io_thread.h"
20 #include "chrome/browser/net/chrome_cookie_policy.h" 21 #include "chrome/browser/net/chrome_cookie_policy.h"
21 #include "chrome/browser/prefs/pref_service.h" 22 #include "chrome/browser/prefs/pref_service.h"
22 #include "chrome/common/extensions/extension.h" 23 #include "chrome/common/extensions/extension.h"
23 #include "chrome/common/extensions/extension_icon_set.h" 24 #include "chrome/common/extensions/extension_icon_set.h"
24 #include "chrome/common/net/url_request_context_getter.h" 25 #include "chrome/common/net/url_request_context_getter.h"
25 #include "chrome/common/notification_registrar.h" 26 #include "chrome/common/notification_registrar.h"
26 #include "net/base/cookie_monster.h" 27 #include "net/base/cookie_monster.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Gets the database tracker associated with this context's profile. 128 // Gets the database tracker associated with this context's profile.
128 webkit_database::DatabaseTracker* database_tracker() const { 129 webkit_database::DatabaseTracker* database_tracker() const {
129 return database_tracker_.get(); 130 return database_tracker_.get();
130 } 131 }
131 132
132 // Gets the blob storage context associated with this context's profile. 133 // Gets the blob storage context associated with this context's profile.
133 ChromeBlobStorageContext* blob_storage_context() const { 134 ChromeBlobStorageContext* blob_storage_context() const {
134 return blob_storage_context_.get(); 135 return blob_storage_context_.get();
135 } 136 }
136 137
138 // Gets the file system host context with this context's profile.
139 FileSystemHostContext* file_system_host_context() const {
140 return file_system_host_context_.get();
141 }
142
137 bool is_off_the_record() const { 143 bool is_off_the_record() const {
138 return is_off_the_record_; 144 return is_off_the_record_;
139 } 145 }
140 bool is_media() const { 146 bool is_media() const {
141 return is_media_; 147 return is_media_;
142 } 148 }
143 149
144 virtual const std::string& GetUserAgent(const GURL& url) const; 150 virtual const std::string& GetUserAgent(const GURL& url) const;
145 151
146 HostContentSettingsMap* host_content_settings_map() { 152 HostContentSettingsMap* host_content_settings_map() {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 236 }
231 void set_appcache_service(ChromeAppCacheService* service) { 237 void set_appcache_service(ChromeAppCacheService* service) {
232 appcache_service_ = service; 238 appcache_service_ = service;
233 } 239 }
234 void set_database_tracker(webkit_database::DatabaseTracker* tracker) { 240 void set_database_tracker(webkit_database::DatabaseTracker* tracker) {
235 database_tracker_ = tracker; 241 database_tracker_ = tracker;
236 } 242 }
237 void set_blob_storage_context(ChromeBlobStorageContext* context) { 243 void set_blob_storage_context(ChromeBlobStorageContext* context) {
238 blob_storage_context_ = context; 244 blob_storage_context_ = context;
239 } 245 }
246 void set_file_system_host_context(FileSystemHostContext* context) {
247 file_system_host_context_ = context;
248 }
240 void set_net_log(net::NetLog* net_log) { 249 void set_net_log(net::NetLog* net_log) {
241 net_log_ = net_log; 250 net_log_ = net_log;
242 } 251 }
243 void set_network_delegate( 252 void set_network_delegate(
244 net::HttpNetworkDelegate* network_delegate) { 253 net::HttpNetworkDelegate* network_delegate) {
245 network_delegate_ = network_delegate; 254 network_delegate_ = network_delegate;
246 } 255 }
247 256
248 // Callback for when the accept language changes. 257 // Callback for when the accept language changes.
249 void OnAcceptLanguageChange(const std::string& accept_language); 258 void OnAcceptLanguageChange(const std::string& accept_language);
250 259
251 // Callback for when the default charset changes. 260 // Callback for when the default charset changes.
252 void OnDefaultCharsetChange(const std::string& default_charset); 261 void OnDefaultCharsetChange(const std::string& default_charset);
253 262
254 protected: 263 protected:
255 ExtensionInfoMap extension_info_; 264 ExtensionInfoMap extension_info_;
256 265
257 // Path to the directory user scripts are stored in. 266 // Path to the directory user scripts are stored in.
258 FilePath user_script_dir_path_; 267 FilePath user_script_dir_path_;
259 268
260 scoped_refptr<ChromeAppCacheService> appcache_service_; 269 scoped_refptr<ChromeAppCacheService> appcache_service_;
261 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 270 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
262 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_; 271 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_;
263 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 272 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
264 scoped_refptr<HostZoomMap> host_zoom_map_; 273 scoped_refptr<HostZoomMap> host_zoom_map_;
265 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 274 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
275 scoped_refptr<FileSystemHostContext> file_system_host_context_;
266 276
267 bool is_media_; 277 bool is_media_;
268 bool is_off_the_record_; 278 bool is_off_the_record_;
269 279
270 private: 280 private:
271 281
272 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); 282 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext);
273 }; 283 };
274 284
275 // A URLRequestContextGetter subclass used by the browser. This returns a 285 // A URLRequestContextGetter subclass used by the browser. This returns a
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 // user scripts. 434 // user scripts.
425 FilePath user_script_dir_path_; 435 FilePath user_script_dir_path_;
426 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 436 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
427 scoped_refptr<ChromeAppCacheService> appcache_service_; 437 scoped_refptr<ChromeAppCacheService> appcache_service_;
428 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 438 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
429 scoped_refptr<HostZoomMap> host_zoom_map_; 439 scoped_refptr<HostZoomMap> host_zoom_map_;
430 scoped_refptr<net::TransportSecurityState> transport_security_state_; 440 scoped_refptr<net::TransportSecurityState> transport_security_state_;
431 scoped_refptr<net::SSLConfigService> ssl_config_service_; 441 scoped_refptr<net::SSLConfigService> ssl_config_service_;
432 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate_; 442 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate_;
433 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 443 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
444 scoped_refptr<FileSystemHostContext> file_system_host_context_;
434 445
435 FilePath profile_dir_path_; 446 FilePath profile_dir_path_;
436 447
437 private: 448 private:
438 IOThread* const io_thread_; 449 IOThread* const io_thread_;
439 450
440 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); 451 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory);
441 }; 452 };
442 453
443 // Creates a proxy configuration from proxy-related preferences fetched 454 // Creates a proxy configuration from proxy-related preferences fetched
444 // from |pref_service|. The relevant preferences in |pref_service| are 455 // from |pref_service|. The relevant preferences in |pref_service| are
445 // initialized from the process' command line or by applicable proxy policies. 456 // initialized from the process' command line or by applicable proxy policies.
446 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service); 457 net::ProxyConfig* CreateProxyConfig(const PrefService* pref_service);
447 458
448 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 459 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/file_system/file_system_host_context_unittest.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698