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

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

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

Powered by Google App Engine
This is Rietveld 408576698