OLD | NEW |
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 127 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
128 | 128 |
129 private: | 129 private: |
130 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); | 130 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); |
131 void InitHostZoomMap(); | 131 void InitHostZoomMap(); |
132 | 132 |
133 #if defined(OS_ANDROID) | 133 #if defined(OS_ANDROID) |
134 void UseSystemProxy(); | 134 void UseSystemProxy(); |
135 #endif | 135 #endif |
136 | 136 |
137 void OnZoomLevelChanged(const std::string& host); | 137 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change); |
138 | 138 |
139 // The real underlying profile. | 139 // The real underlying profile. |
140 Profile* profile_; | 140 Profile* profile_; |
141 | 141 |
142 // Weak pointer owned by |profile_|. | 142 // Weak pointer owned by |profile_|. |
143 PrefServiceSyncable* prefs_; | 143 PrefServiceSyncable* prefs_; |
144 | 144 |
145 OffTheRecordProfileIOData::Handle io_data_; | 145 OffTheRecordProfileIOData::Handle io_data_; |
146 | 146 |
147 // We use a non-persistent content settings map for OTR. | 147 // We use a non-persistent content settings map for OTR. |
148 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 148 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
149 | 149 |
150 // Time we were started. | 150 // Time we were started. |
151 Time start_time_; | 151 Time start_time_; |
152 | 152 |
153 base::FilePath last_selected_directory_; | 153 base::FilePath last_selected_directory_; |
154 | 154 |
155 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 155 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
156 | 156 |
157 content::HostZoomMap::ZoomLevelChangedCallback zoom_callback_; | 157 content::HostZoomMap::ZoomLevelChangedCallback zoom_callback_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 159 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
160 }; | 160 }; |
161 | 161 |
162 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 162 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
OLD | NEW |