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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_io_data.h

Issue 10969017: Create a new URLRequestJobFactory for isolated request contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ordering Created 8 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 CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 typedef base::hash_map<std::string, net::HttpTransactionFactory* > 92 typedef base::hash_map<std::string, net::HttpTransactionFactory* >
93 HttpTransactionFactoryMap; 93 HttpTransactionFactoryMap;
94 94
95 OffTheRecordProfileIOData(); 95 OffTheRecordProfileIOData();
96 virtual ~OffTheRecordProfileIOData(); 96 virtual ~OffTheRecordProfileIOData();
97 97
98 virtual void LazyInitializeInternal( 98 virtual void LazyInitializeInternal(
99 ProfileParams* profile_params) const OVERRIDE; 99 ProfileParams* profile_params) const OVERRIDE;
100 virtual ChromeURLRequestContext* InitializeAppRequestContext( 100 virtual ChromeURLRequestContext* InitializeAppRequestContext(
101 ChromeURLRequestContext* main_context, 101 ChromeURLRequestContext* main_context,
102 const std::string& app_id) const OVERRIDE; 102 const std::string& app_id,
103 scoped_ptr<net::URLRequestJobFactory::Interceptor>
104 protocol_handler_interceptor) const OVERRIDE;
103 virtual ChromeURLRequestContext* InitializeMediaRequestContext( 105 virtual ChromeURLRequestContext* InitializeMediaRequestContext(
104 ChromeURLRequestContext* original_context, 106 ChromeURLRequestContext* original_context,
105 const std::string& app_id) const OVERRIDE; 107 const std::string& app_id) const OVERRIDE;
106 virtual ChromeURLRequestContext* 108 virtual ChromeURLRequestContext*
107 AcquireMediaRequestContext() const OVERRIDE; 109 AcquireMediaRequestContext() const OVERRIDE;
108 virtual ChromeURLRequestContext* 110 virtual ChromeURLRequestContext*
109 AcquireIsolatedAppRequestContext( 111 AcquireIsolatedAppRequestContext(
110 ChromeURLRequestContext* main_context, 112 ChromeURLRequestContext* main_context,
111 const std::string& app_id) const OVERRIDE; 113 const std::string& app_id,
114 scoped_ptr<net::URLRequestJobFactory::Interceptor>
115 protocol_handler_interceptor) const OVERRIDE;
112 virtual ChromeURLRequestContext* 116 virtual ChromeURLRequestContext*
113 AcquireIsolatedMediaRequestContext( 117 AcquireIsolatedMediaRequestContext(
114 ChromeURLRequestContext* app_context, 118 ChromeURLRequestContext* app_context,
115 const std::string& app_id) const OVERRIDE; 119 const std::string& app_id) const OVERRIDE;
116 120
117 void CreateFtpProtocolHandler(net::URLRequestJobFactory* job_factory,
118 net::FtpAuthCache* ftp_auth_cache) const;
119
120 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( 121 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats(
121 IOThread::Globals* io_thread_globals) const OVERRIDE; 122 IOThread::Globals* io_thread_globals) const OVERRIDE;
122 123
123 mutable scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_; 124 mutable scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_;
124 125
125 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; 126 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
126 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; 127 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_;
127 128
128 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; 129 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_;
129 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; 130 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileIOData); 132 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileIOData);
132 }; 133 };
133 134
134 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ 135 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/profiles/off_the_record_profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698