diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-16 20:04:13 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-16 20:04:13 +0000 |
commit | ad423e4dea4e3836ee2a85ef1cc9e3f598d8d3e7 (patch) | |
tree | 1b131335775ed7036a383cfd436a0f857fce2267 /chrome/browser/net/chrome_url_request_context.h | |
parent | 74202aea3e209e753484d2980e7e81c0f0614bef (diff) | |
download | chromium_src-ad423e4dea4e3836ee2a85ef1cc9e3f598d8d3e7.zip chromium_src-ad423e4dea4e3836ee2a85ef1cc9e3f598d8d3e7.tar.gz chromium_src-ad423e4dea4e3836ee2a85ef1cc9e3f598d8d3e7.tar.bz2 |
Add a URLRequestJobFactory::ProtocolHandler for chrome:// and chrome-devtools://.
BUG=81554,81979
TEST=
1. Goto chrome://net-internals/#tests
2. Enter chrome://net-internals/#events&q=type:SPDY_SESSION%20is:active in the
3. Click 'Start tests'
Review URL: http://codereview.chromium.org/7034004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_url_request_context.h')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h index bb9d72e..63a9410 100644 --- a/chrome/browser/net/chrome_url_request_context.h +++ b/chrome/browser/net/chrome_url_request_context.h @@ -81,7 +81,9 @@ class ChromeURLRequestContext : public net::URLRequestContext { return extension_info_map_; } - ChromeURLDataManagerBackend* GetChromeURLDataManagerBackend(); + // TODO(willchan): Get rid of the need for this accessor. Really, this should + // move completely to ProfileIOData. + ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const; // Setters to simplify initializing from factory objects. void set_user_script_dir_path(const FilePath& path) { @@ -102,6 +104,8 @@ class ChromeURLRequestContext : public net::URLRequestContext { void set_extension_info_map(ExtensionInfoMap* map) { extension_info_map_ = map; } + void set_chrome_url_data_manager_backend( + ChromeURLDataManagerBackend* backend); // Callback for when the accept language changes. void OnAcceptLanguageChange(const std::string& accept_language); @@ -127,8 +131,8 @@ class ChromeURLRequestContext : public net::URLRequestContext { scoped_refptr<fileapi::FileSystemContext> file_system_context_; // TODO(aa): This should use chrome/common/extensions/extension_set.h. scoped_refptr<ExtensionInfoMap> extension_info_map_; - scoped_ptr<ChromeURLDataManagerBackend> chrome_url_data_manager_backend_; + ChromeURLDataManagerBackend* chrome_url_data_manager_backend_; bool is_incognito_; // --------------------------------------------------------------------------- |