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

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: Avoid DCHECK in GetExtensionInfoMap() during Init() Created 8 years 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual ExtensionSpecialStoragePolicy* 43 virtual ExtensionSpecialStoragePolicy*
44 GetExtensionSpecialStoragePolicy() OVERRIDE; 44 GetExtensionSpecialStoragePolicy() OVERRIDE;
45 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; 45 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE;
46 virtual policy::ManagedModePolicyProvider* 46 virtual policy::ManagedModePolicyProvider*
47 GetManagedModePolicyProvider() OVERRIDE; 47 GetManagedModePolicyProvider() OVERRIDE;
48 virtual policy::PolicyService* GetPolicyService() OVERRIDE; 48 virtual policy::PolicyService* GetPolicyService() OVERRIDE;
49 virtual PrefService* GetPrefs() OVERRIDE; 49 virtual PrefService* GetPrefs() OVERRIDE;
50 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 50 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
51 virtual net::URLRequestContextGetter* 51 virtual net::URLRequestContextGetter*
52 GetRequestContextForExtensions() OVERRIDE; 52 GetRequestContextForExtensions() OVERRIDE;
53 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( 53 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
54 const FilePath& partition_path, 54 const FilePath& partition_path,
55 bool in_memory) OVERRIDE; 55 bool in_memory,
56 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
57 blob_protocol_handler,
58 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
59 file_system_protocol_handler,
60 scoped_ptr<net::URLRequestJobFactory::Interceptor>
61 developer_protocol_handler) OVERRIDE;
mmenke 2012/12/20 16:55:06 Declaration order should match profile.h
56 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 62 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
57 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 63 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
58 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 64 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
59 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 65 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
60 virtual Time GetStartTime() const OVERRIDE; 66 virtual Time GetStartTime() const OVERRIDE;
61 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 67 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
62 virtual history::TopSites* GetTopSites() OVERRIDE; 68 virtual history::TopSites* GetTopSites() OVERRIDE;
63 virtual void InitPromoResources() OVERRIDE; 69 virtual void InitPromoResources() OVERRIDE;
64 virtual FilePath last_selected_directory() OVERRIDE; 70 virtual FilePath last_selected_directory() OVERRIDE;
65 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 71 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
(...skipping 18 matching lines...) Expand all
84 const base::Closure& completion) OVERRIDE; 90 const base::Closure& completion) OVERRIDE;
85 virtual GURL GetHomePage() OVERRIDE; 91 virtual GURL GetHomePage() OVERRIDE;
86 92
87 // content::BrowserContext implementation: 93 // content::BrowserContext implementation:
88 virtual FilePath GetPath() OVERRIDE; 94 virtual FilePath GetPath() OVERRIDE;
89 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; 95 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
90 virtual bool IsOffTheRecord() const OVERRIDE; 96 virtual bool IsOffTheRecord() const OVERRIDE;
91 virtual content::DownloadManagerDelegate* 97 virtual content::DownloadManagerDelegate*
92 GetDownloadManagerDelegate() OVERRIDE; 98 GetDownloadManagerDelegate() OVERRIDE;
93 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 99 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
100 virtual net::URLRequestContextGetter* CreateRequestContext(
101 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
102 blob_protocol_handler,
103 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
104 file_system_protocol_handler,
105 scoped_ptr<net::URLRequestJobFactory::Interceptor>
106 developer_protocol_handler) OVERRIDE;
mmenke 2012/12/20 16:55:06 This is not part of the BrowserContext. Should go
94 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 107 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
95 int renderer_child_id) OVERRIDE; 108 int renderer_child_id) OVERRIDE;
96 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 109 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
97 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 110 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
98 int renderer_child_id) OVERRIDE; 111 int renderer_child_id) OVERRIDE;
99 virtual net::URLRequestContextGetter* 112 virtual net::URLRequestContextGetter*
100 GetMediaRequestContextForStoragePartition( 113 GetMediaRequestContextForStoragePartition(
101 const FilePath& partition_path, 114 const FilePath& partition_path,
102 bool in_memory) OVERRIDE; 115 bool in_memory) OVERRIDE;
103 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 116 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 Time start_time_; 153 Time start_time_;
141 154
142 FilePath last_selected_directory_; 155 FilePath last_selected_directory_;
143 156
144 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 157 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
145 158
146 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 159 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
147 }; 160 };
148 161
149 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 162 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698