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

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

Issue 6461024: Revert 74292 - Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 class CommandLine; 33 class CommandLine;
34 class PrefService; 34 class PrefService;
35 class Profile; 35 class Profile;
36 class ProfileIOData; 36 class ProfileIOData;
37 37
38 namespace net { 38 namespace net {
39 class DnsCertProvenanceChecker; 39 class DnsCertProvenanceChecker;
40 class NetworkDelegate; 40 class NetworkDelegate;
41 } 41 }
42 42
43 class ChromeURLDataManagerBackend;
44 class ChromeURLRequestContext; 43 class ChromeURLRequestContext;
45 class ChromeURLRequestContextFactory; 44 class ChromeURLRequestContextFactory;
46 45
47 // Subclass of net::URLRequestContext which can be used to store extra 46 // Subclass of net::URLRequestContext which can be used to store extra
48 // information for requests. 47 // information for requests.
49 // 48 //
50 // All methods of this class must be called from the IO thread, 49 // All methods of this class must be called from the IO thread,
51 // including the constructor and destructor. 50 // including the constructor and destructor.
52 class ChromeURLRequestContext : public net::URLRequestContext { 51 class ChromeURLRequestContext : public net::URLRequestContext {
53 public: 52 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 95 }
97 96
98 const ExtensionIOEventRouter* extension_io_event_router() const { 97 const ExtensionIOEventRouter* extension_io_event_router() const {
99 return extension_io_event_router_; 98 return extension_io_event_router_;
100 } 99 }
101 100
102 PrerenderManager* prerender_manager() { 101 PrerenderManager* prerender_manager() {
103 return prerender_manager_.get(); 102 return prerender_manager_.get();
104 } 103 }
105 104
106 ChromeURLDataManagerBackend* GetChromeURLDataManagerBackend();
107
108 protected: 105 protected:
109 virtual ~ChromeURLRequestContext(); 106 virtual ~ChromeURLRequestContext();
110 107
111 public: 108 public:
112 // Setters to simplify initializing from factory objects. 109 // Setters to simplify initializing from factory objects.
113 110
114 void set_accept_language(const std::string& accept_language) { 111 void set_accept_language(const std::string& accept_language) {
115 accept_language_ = accept_language; 112 accept_language_ = accept_language;
116 } 113 }
117 void set_accept_charset(const std::string& accept_charset) { 114 void set_accept_charset(const std::string& accept_charset) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 184 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
188 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_; 185 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_;
189 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 186 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
190 scoped_refptr<HostZoomMap> host_zoom_map_; 187 scoped_refptr<HostZoomMap> host_zoom_map_;
191 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 188 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
192 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; 189 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_;
193 // TODO(aa): This should use chrome/common/extensions/extension_set.h. 190 // TODO(aa): This should use chrome/common/extensions/extension_set.h.
194 scoped_refptr<ExtensionInfoMap> extension_info_map_; 191 scoped_refptr<ExtensionInfoMap> extension_info_map_;
195 scoped_refptr<ExtensionIOEventRouter> extension_io_event_router_; 192 scoped_refptr<ExtensionIOEventRouter> extension_io_event_router_;
196 scoped_refptr<PrerenderManager> prerender_manager_; 193 scoped_refptr<PrerenderManager> prerender_manager_;
197 scoped_ptr<ChromeURLDataManagerBackend> chrome_url_data_manager_backend_;
198 194
199 bool is_off_the_record_; 195 bool is_off_the_record_;
200 196
201 private: 197 private:
202 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); 198 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext);
203 }; 199 };
204 200
205 // A URLRequestContextGetter subclass used by the browser. This returns a 201 // A URLRequestContextGetter subclass used by the browser. This returns a
206 // subclass of net::URLRequestContext which can be used to store extra 202 // subclass of net::URLRequestContext which can be used to store extra
207 // information about requests. 203 // information about requests.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 357
362 FilePath profile_dir_path_; 358 FilePath profile_dir_path_;
363 359
364 private: 360 private:
365 IOThread* const io_thread_; 361 IOThread* const io_thread_;
366 362
367 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); 363 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory);
368 }; 364 };
369 365
370 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 366 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extensions_ui.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