| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual content::GeolocationPermissionContext* | 106 virtual content::GeolocationPermissionContext* |
| 107 GetGeolocationPermissionContext() OVERRIDE; | 107 GetGeolocationPermissionContext() OVERRIDE; |
| 108 virtual content::SpeechRecognitionPreferences* | 108 virtual content::SpeechRecognitionPreferences* |
| 109 GetSpeechRecognitionPreferences() OVERRIDE; | 109 GetSpeechRecognitionPreferences() OVERRIDE; |
| 110 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 110 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); | 113 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); |
| 114 void InitHostZoomMap(); | 114 void InitHostZoomMap(); |
| 115 | 115 |
| 116 #if defined(OS_ANDROID) | 116 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 117 void UseSystemProxy(); | 117 void UseSystemProxy(); |
| 118 #endif | 118 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
| 119 | 119 |
| 120 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change); | 120 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change); |
| 121 | 121 |
| 122 // The real underlying profile. | 122 // The real underlying profile. |
| 123 Profile* profile_; | 123 Profile* profile_; |
| 124 | 124 |
| 125 // Weak pointer owned by |profile_|. | 125 // Weak pointer owned by |profile_|. |
| 126 PrefServiceSyncable* prefs_; | 126 PrefServiceSyncable* prefs_; |
| 127 | 127 |
| 128 OffTheRecordProfileIOData::Handle io_data_; | 128 OffTheRecordProfileIOData::Handle io_data_; |
| 129 | 129 |
| 130 // We use a non-persistent content settings map for OTR. | 130 // We use a non-persistent content settings map for OTR. |
| 131 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 131 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 132 | 132 |
| 133 // Time we were started. | 133 // Time we were started. |
| 134 Time start_time_; | 134 Time start_time_; |
| 135 | 135 |
| 136 base::FilePath last_selected_directory_; | 136 base::FilePath last_selected_directory_; |
| 137 | 137 |
| 138 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 138 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 139 | 139 |
| 140 content::HostZoomMap::ZoomLevelChangedCallback zoom_callback_; | 140 content::HostZoomMap::ZoomLevelChangedCallback zoom_callback_; |
| 141 | 141 |
| 142 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 142 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 145 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
| OLD | NEW |