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

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

Issue 11308362: Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r175140) Created 7 years, 11 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual ExtensionService* GetExtensionService() OVERRIDE; 42 virtual ExtensionService* GetExtensionService() OVERRIDE;
43 virtual ExtensionSpecialStoragePolicy* 43 virtual ExtensionSpecialStoragePolicy*
44 GetExtensionSpecialStoragePolicy() OVERRIDE; 44 GetExtensionSpecialStoragePolicy() OVERRIDE;
45 virtual policy::ManagedModePolicyProvider* 45 virtual policy::ManagedModePolicyProvider*
46 GetManagedModePolicyProvider() OVERRIDE; 46 GetManagedModePolicyProvider() OVERRIDE;
47 virtual policy::PolicyService* GetPolicyService() OVERRIDE; 47 virtual policy::PolicyService* GetPolicyService() OVERRIDE;
48 virtual PrefServiceSyncable* GetPrefs() OVERRIDE; 48 virtual PrefServiceSyncable* GetPrefs() OVERRIDE;
49 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE; 49 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE;
50 virtual net::URLRequestContextGetter* 50 virtual net::URLRequestContextGetter*
51 GetRequestContextForExtensions() OVERRIDE; 51 GetRequestContextForExtensions() OVERRIDE;
52 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( 52 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
53 const FilePath& partition_path, 53 const FilePath& partition_path,
54 bool in_memory) OVERRIDE; 54 bool in_memory,
55 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
56 blob_protocol_handler,
57 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
58 file_system_protocol_handler,
59 scoped_ptr<net::URLRequestJobFactory::Interceptor>
60 developer_protocol_handler) OVERRIDE;
55 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 61 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
56 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 62 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
57 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 63 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
58 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 64 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
59 virtual Time GetStartTime() const OVERRIDE; 65 virtual Time GetStartTime() const OVERRIDE;
60 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 66 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
61 virtual history::TopSites* GetTopSites() OVERRIDE; 67 virtual history::TopSites* GetTopSites() OVERRIDE;
62 virtual FilePath last_selected_directory() OVERRIDE; 68 virtual FilePath last_selected_directory() OVERRIDE;
63 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 69 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
64 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 70 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
(...skipping 17 matching lines...) Expand all
82 const base::Closure& completion) OVERRIDE; 88 const base::Closure& completion) OVERRIDE;
83 virtual GURL GetHomePage() OVERRIDE; 89 virtual GURL GetHomePage() OVERRIDE;
84 90
85 // content::BrowserContext implementation: 91 // content::BrowserContext implementation:
86 virtual FilePath GetPath() OVERRIDE; 92 virtual FilePath GetPath() OVERRIDE;
87 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; 93 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
88 virtual bool IsOffTheRecord() const OVERRIDE; 94 virtual bool IsOffTheRecord() const OVERRIDE;
89 virtual content::DownloadManagerDelegate* 95 virtual content::DownloadManagerDelegate*
90 GetDownloadManagerDelegate() OVERRIDE; 96 GetDownloadManagerDelegate() OVERRIDE;
91 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 97 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
98 virtual net::URLRequestContextGetter* CreateRequestContext(
99 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
100 blob_protocol_handler,
101 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
102 file_system_protocol_handler,
103 scoped_ptr<net::URLRequestJobFactory::Interceptor>
104 developer_protocol_handler) OVERRIDE;
92 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 105 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
93 int renderer_child_id) OVERRIDE; 106 int renderer_child_id) OVERRIDE;
94 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 107 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
95 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 108 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
96 int renderer_child_id) OVERRIDE; 109 int renderer_child_id) OVERRIDE;
97 virtual net::URLRequestContextGetter* 110 virtual net::URLRequestContextGetter*
98 GetMediaRequestContextForStoragePartition( 111 GetMediaRequestContextForStoragePartition(
99 const FilePath& partition_path, 112 const FilePath& partition_path,
100 bool in_memory) OVERRIDE; 113 bool in_memory) OVERRIDE;
101 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 114 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 Time start_time_; 151 Time start_time_;
139 152
140 FilePath last_selected_directory_; 153 FilePath last_selected_directory_;
141 154
142 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 155 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
143 156
144 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 157 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
145 }; 158 };
146 159
147 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 160 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698