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

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

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" 12 #include "chrome/browser/profiles/off_the_record_profile_io_data.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser_list.h" 14 #include "chrome/browser/ui/browser_list.h"
15 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" 15 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h"
16 #include "components/domain_reliability/clear_mode.h" 16 #include "components/domain_reliability/clear_mode.h"
17 #include "content/public/browser/content_browser_client.h" 17 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/browser/host_zoom_map.h" 18 #include "content/public/browser/host_zoom_map.h"
19 19
20 using base::Time; 20 using base::Time;
21 using base::TimeDelta; 21 using base::TimeDelta;
22 22
23 namespace syncable_prefs { 23 namespace sync_preferences {
24 class PrefServiceSyncable; 24 class PrefServiceSyncable;
25 } 25 }
26 26
27 //////////////////////////////////////////////////////////////////////////////// 27 ////////////////////////////////////////////////////////////////////////////////
28 // 28 //
29 // OffTheRecordProfileImpl is a profile subclass that wraps an existing profile 29 // OffTheRecordProfileImpl is a profile subclass that wraps an existing profile
30 // to make it suitable for the incognito mode. 30 // to make it suitable for the incognito mode.
31 // 31 //
32 // Note: This class is a leaf class and is not intended for subclassing. 32 // Note: This class is a leaf class and is not intended for subclassing.
33 // Providing this header file is for unit testing. 33 // Providing this header file is for unit testing.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 PrefProxyConfigTracker* CreateProxyConfigTracker(); 119 PrefProxyConfigTracker* CreateProxyConfigTracker();
120 // Callback function for tracking parent's zoom level changes. 120 // Callback function for tracking parent's zoom level changes.
121 void OnParentZoomLevelChanged( 121 void OnParentZoomLevelChanged(
122 const content::HostZoomMap::ZoomLevelChange& change); 122 const content::HostZoomMap::ZoomLevelChange& change);
123 void UpdateDefaultZoomLevel(); 123 void UpdateDefaultZoomLevel();
124 124
125 // The real underlying profile. 125 // The real underlying profile.
126 Profile* profile_; 126 Profile* profile_;
127 127
128 // Weak pointer owned by |profile_|. 128 // Weak pointer owned by |profile_|.
129 syncable_prefs::PrefServiceSyncable* prefs_; 129 sync_preferences::PrefServiceSyncable* prefs_;
130 130
131 std::unique_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_; 131 std::unique_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_;
132 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> 132 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription>
133 parent_default_zoom_level_subscription_; 133 parent_default_zoom_level_subscription_;
134 std::unique_ptr<OffTheRecordProfileIOData::Handle> io_data_; 134 std::unique_ptr<OffTheRecordProfileIOData::Handle> io_data_;
135 135
136 // Time we were started. 136 // Time we were started.
137 Time start_time_; 137 Time start_time_;
138 138
139 base::FilePath last_selected_directory_; 139 base::FilePath last_selected_directory_;
140 140
141 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 141 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 143 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
144 }; 144 };
145 145
146 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 146 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/gaia_info_update_service_unittest.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