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

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

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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
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/macros.h" 10 #include "base/macros.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void DestroyOffTheRecordProfile() override; 46 void DestroyOffTheRecordProfile() override;
47 bool HasOffTheRecordProfile() override; 47 bool HasOffTheRecordProfile() override;
48 Profile* GetOriginalProfile() override; 48 Profile* GetOriginalProfile() override;
49 bool IsSupervised() const override; 49 bool IsSupervised() const override;
50 bool IsChild() const override; 50 bool IsChild() const override;
51 bool IsLegacySupervised() const override; 51 bool IsLegacySupervised() const override;
52 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; 52 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override;
53 PrefService* GetPrefs() override; 53 PrefService* GetPrefs() override;
54 const PrefService* GetPrefs() const override; 54 const PrefService* GetPrefs() const override;
55 PrefService* GetOffTheRecordPrefs() override; 55 PrefService* GetOffTheRecordPrefs() override;
56 net::URLRequestContextGetter* GetRequestContext() override;
56 net::URLRequestContextGetter* GetRequestContextForExtensions() override; 57 net::URLRequestContextGetter* GetRequestContextForExtensions() override;
57 net::URLRequestContextGetter* CreateRequestContext( 58 net::URLRequestContextGetter* CreateRequestContext(
58 content::ProtocolHandlerMap* protocol_handlers, 59 content::ProtocolHandlerMap* protocol_handlers,
59 content::URLRequestInterceptorScopedVector request_interceptors) override; 60 content::URLRequestInterceptorScopedVector request_interceptors) override;
60 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 61 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
61 const base::FilePath& partition_path, 62 const base::FilePath& partition_path,
62 bool in_memory, 63 bool in_memory,
63 content::ProtocolHandlerMap* protocol_handlers, 64 content::ProtocolHandlerMap* protocol_handlers,
64 content::URLRequestInterceptorScopedVector request_interceptors) override; 65 content::URLRequestInterceptorScopedVector request_interceptors) override;
65 net::SSLConfigService* GetSSLConfigService() override; 66 net::SSLConfigService* GetSSLConfigService() override;
(...skipping 20 matching lines...) Expand all
86 const base::Closure& completion) override; 87 const base::Closure& completion) override;
87 GURL GetHomePage() override; 88 GURL GetHomePage() override;
88 89
89 // content::BrowserContext implementation: 90 // content::BrowserContext implementation:
90 base::FilePath GetPath() const override; 91 base::FilePath GetPath() const override;
91 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( 92 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
92 const base::FilePath& partition_path) override; 93 const base::FilePath& partition_path) override;
93 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; 94 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override;
94 bool IsOffTheRecord() const override; 95 bool IsOffTheRecord() const override;
95 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 96 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
96 net::URLRequestContextGetter* GetRequestContext() override;
97 net::URLRequestContextGetter* GetMediaRequestContext() override; 97 net::URLRequestContextGetter* GetMediaRequestContext() override;
98 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 98 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
99 int renderer_child_id) override; 99 int renderer_child_id) override;
100 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( 100 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
101 const base::FilePath& partition_path, 101 const base::FilePath& partition_path,
102 bool in_memory) override; 102 bool in_memory) override;
103 content::ResourceContext* GetResourceContext() override; 103 content::ResourceContext* GetResourceContext() override;
104 content::BrowserPluginGuestManager* GetGuestManager() override; 104 content::BrowserPluginGuestManager* GetGuestManager() override;
105 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 105 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
106 content::PushMessagingService* GetPushMessagingService() override; 106 content::PushMessagingService* GetPushMessagingService() override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 Time start_time_; 139 Time start_time_;
140 140
141 base::FilePath last_selected_directory_; 141 base::FilePath last_selected_directory_;
142 142
143 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 143 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 145 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
146 }; 146 };
147 147
148 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 148 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profile_resetter/reset_report_uploader.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698