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

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

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Rebase. Created 3 years, 7 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/timer/timer.h" 17 #include "base/timer/timer.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/profiles/profile_impl_io_data.h" 20 #include "chrome/browser/profiles/profile_impl_io_data.h"
21 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h"
22 #include "chrome/common/features.h" 21 #include "chrome/common/features.h"
23 #include "components/prefs/pref_change_registrar.h" 22 #include "components/prefs/pref_change_registrar.h"
24 #include "content/public/browser/content_browser_client.h" 23 #include "content/public/browser/content_browser_client.h"
24 #include "extensions/features/features.h"
25
26 #if !defined(OS_ANDROID)
27 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h"
25 #include "content/public/browser/host_zoom_map.h" 28 #include "content/public/browser/host_zoom_map.h"
26 #include "extensions/features/features.h" 29 #endif
27 30
28 class MediaDeviceIDSalt; 31 class MediaDeviceIDSalt;
29 class PrefService; 32 class PrefService;
30 33
31 #if defined(OS_CHROMEOS) 34 #if defined(OS_CHROMEOS)
32 namespace chromeos { 35 namespace chromeos {
33 class KioskTest; 36 class KioskTest;
34 class LocaleChangeGuard; 37 class LocaleChangeGuard;
35 class Preferences; 38 class Preferences;
36 class SupervisedUserTestBase; 39 class SupervisedUserTestBase;
(...skipping 30 matching lines...) Expand all
67 class ProfileImpl : public Profile { 70 class ProfileImpl : public Profile {
68 public: 71 public:
69 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. 72 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests.
70 static const char kPrefExitTypeNormal[]; 73 static const char kPrefExitTypeNormal[];
71 74
72 ~ProfileImpl() override; 75 ~ProfileImpl() override;
73 76
74 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 77 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
75 78
76 // content::BrowserContext implementation: 79 // content::BrowserContext implementation:
80 #if !defined(OS_ANDROID)
77 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( 81 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
78 const base::FilePath& partition_path) override; 82 const base::FilePath& partition_path) override;
83 #endif
79 base::FilePath GetPath() const override; 84 base::FilePath GetPath() const override;
80 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 85 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
81 content::ResourceContext* GetResourceContext() override; 86 content::ResourceContext* GetResourceContext() override;
82 content::BrowserPluginGuestManager* GetGuestManager() override; 87 content::BrowserPluginGuestManager* GetGuestManager() override;
83 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 88 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
84 content::PushMessagingService* GetPushMessagingService() override; 89 content::PushMessagingService* GetPushMessagingService() override;
85 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 90 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
86 content::BrowsingDataRemoverDelegate* GetBrowsingDataRemoverDelegate() 91 content::BrowsingDataRemoverDelegate* GetBrowsingDataRemoverDelegate()
87 override; 92 override;
88 content::PermissionManager* GetPermissionManager() override; 93 content::PermissionManager* GetPermissionManager() override;
(...skipping 23 matching lines...) Expand all
112 Profile* GetOffTheRecordProfile() override; 117 Profile* GetOffTheRecordProfile() override;
113 void DestroyOffTheRecordProfile() override; 118 void DestroyOffTheRecordProfile() override;
114 bool HasOffTheRecordProfile() override; 119 bool HasOffTheRecordProfile() override;
115 Profile* GetOriginalProfile() override; 120 Profile* GetOriginalProfile() override;
116 bool IsSupervised() const override; 121 bool IsSupervised() const override;
117 bool IsChild() const override; 122 bool IsChild() const override;
118 bool IsLegacySupervised() const override; 123 bool IsLegacySupervised() const override;
119 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; 124 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override;
120 PrefService* GetPrefs() override; 125 PrefService* GetPrefs() override;
121 const PrefService* GetPrefs() const override; 126 const PrefService* GetPrefs() const override;
127 #if !defined(OS_ANDROID)
122 ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; 128 ChromeZoomLevelPrefs* GetZoomLevelPrefs() override;
129 #endif
123 PrefService* GetOffTheRecordPrefs() override; 130 PrefService* GetOffTheRecordPrefs() override;
124 net::URLRequestContextGetter* GetRequestContext() override; 131 net::URLRequestContextGetter* GetRequestContext() override;
125 net::URLRequestContextGetter* GetRequestContextForExtensions() override; 132 net::URLRequestContextGetter* GetRequestContextForExtensions() override;
126 net::SSLConfigService* GetSSLConfigService() override; 133 net::SSLConfigService* GetSSLConfigService() override;
127 bool IsSameProfile(Profile* profile) override; 134 bool IsSameProfile(Profile* profile) override;
128 base::Time GetStartTime() const override; 135 base::Time GetStartTime() const override;
129 base::FilePath last_selected_directory() override; 136 base::FilePath last_selected_directory() override;
130 void set_last_selected_directory(const base::FilePath& path) override; 137 void set_last_selected_directory(const base::FilePath& path) override;
131 chrome_browser_net::Predictor* GetNetworkPredictor() override; 138 chrome_browser_net::Predictor* GetNetworkPredictor() override;
132 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle() 139 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle()
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // components/keyed_service/content/browser_context_keyed_service_factory.* 282 // components/keyed_service/content/browser_context_keyed_service_factory.*
276 283
277 Profile::Delegate* delegate_; 284 Profile::Delegate* delegate_;
278 285
279 chrome_browser_net::Predictor* predictor_; 286 chrome_browser_net::Predictor* predictor_;
280 287
281 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 288 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
282 }; 289 };
283 290
284 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 291 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698