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

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

Issue 12386009: Remove the chrome:// protocol interceptor since it's not used anymore now that the chrome job facto… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // GetStoragePartition() is used to retrieve the request context, but creation 253 // GetStoragePartition() is used to retrieve the request context, but creation
254 // still has to happen in the Profile so the StoragePartition calls 254 // still has to happen in the Profile so the StoragePartition calls
255 // ContextBrowserClient to call this function. 255 // ContextBrowserClient to call this function.
256 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. 256 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved.
257 virtual net::URLRequestContextGetter* CreateRequestContext( 257 virtual net::URLRequestContextGetter* CreateRequestContext(
258 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 258 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
259 blob_protocol_handler, 259 blob_protocol_handler,
260 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 260 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
261 file_system_protocol_handler, 261 file_system_protocol_handler,
262 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 262 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
263 developer_protocol_handler,
264 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
265 chrome_protocol_handler, 263 chrome_protocol_handler,
266 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 264 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
267 chrome_devtools_protocol_handler) = 0; 265 chrome_devtools_protocol_handler) = 0;
268 266
269 // Creates the net::URLRequestContextGetter for a StoragePartition. Should 267 // Creates the net::URLRequestContextGetter for a StoragePartition. Should
270 // only be called once per partition_path per ContentBrowserClient object. 268 // only be called once per partition_path per ContentBrowserClient object.
271 // This function is exposed because the request context is retrieved from the 269 // This function is exposed because the request context is retrieved from the
272 // StoragePartition, but creation still has to happen in the Profile so the 270 // StoragePartition, but creation still has to happen in the Profile so the
273 // StoragePartition calls ContextBrowserClient to call this function. 271 // StoragePartition calls ContextBrowserClient to call this function.
274 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. 272 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved.
275 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 273 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
276 const base::FilePath& partition_path, 274 const base::FilePath& partition_path,
277 bool in_memory, 275 bool in_memory,
278 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 276 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
279 blob_protocol_handler, 277 blob_protocol_handler,
280 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 278 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
281 file_system_protocol_handler, 279 file_system_protocol_handler,
282 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 280 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
283 developer_protocol_handler,
284 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
285 chrome_protocol_handler, 281 chrome_protocol_handler,
286 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 282 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
287 chrome_devtools_protocol_handler) = 0; 283 chrome_devtools_protocol_handler) = 0;
288 284
289 // Returns the last directory that was chosen for uploading or opening a file. 285 // Returns the last directory that was chosen for uploading or opening a file.
290 virtual base::FilePath last_selected_directory() = 0; 286 virtual base::FilePath last_selected_directory() = 0;
291 virtual void set_last_selected_directory(const base::FilePath& path) = 0; 287 virtual void set_last_selected_directory(const base::FilePath& path) = 0;
292 288
293 #if defined(OS_CHROMEOS) 289 #if defined(OS_CHROMEOS)
294 enum AppLocaleChangedVia { 290 enum AppLocaleChangedVia {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 struct hash<Profile*> { 415 struct hash<Profile*> {
420 std::size_t operator()(Profile* const& p) const { 416 std::size_t operator()(Profile* const& p) const {
421 return reinterpret_cast<std::size_t>(p); 417 return reinterpret_cast<std::size_t>(p);
422 } 418 }
423 }; 419 };
424 420
425 } // namespace BASE_HASH_NAMESPACE 421 } // namespace BASE_HASH_NAMESPACE
426 #endif 422 #endif
427 423
428 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 424 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698