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 | 106 |
107 // content::NotificationObserver implementation. | 107 // content::NotificationObserver implementation. |
108 virtual void Observe(int type, | 108 virtual void Observe(int type, |
109 const content::NotificationSource& source, | 109 const content::NotificationSource& source, |
110 const content::NotificationDetails& details) OVERRIDE; | 110 const content::NotificationDetails& details) 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) |
| 117 void UseSystemProxy(); |
| 118 #endif |
| 119 |
116 virtual base::Callback<ChromeURLDataManagerBackend*(void)> | 120 virtual base::Callback<ChromeURLDataManagerBackend*(void)> |
117 GetChromeURLDataManagerBackendGetter() const OVERRIDE; | 121 GetChromeURLDataManagerBackendGetter() const OVERRIDE; |
118 | 122 |
119 content::NotificationRegistrar registrar_; | 123 content::NotificationRegistrar registrar_; |
120 | 124 |
121 // The real underlying profile. | 125 // The real underlying profile. |
122 Profile* profile_; | 126 Profile* profile_; |
123 | 127 |
124 // Weak pointer owned by |profile_|. | 128 // Weak pointer owned by |profile_|. |
125 PrefService* prefs_; | 129 PrefService* prefs_; |
126 | 130 |
127 OffTheRecordProfileIOData::Handle io_data_; | 131 OffTheRecordProfileIOData::Handle io_data_; |
128 | 132 |
129 // We use a non-persistent content settings map for OTR. | 133 // We use a non-persistent content settings map for OTR. |
130 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 134 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
131 | 135 |
132 // Time we were started. | 136 // Time we were started. |
133 Time start_time_; | 137 Time start_time_; |
134 | 138 |
135 FilePath last_selected_directory_; | 139 FilePath last_selected_directory_; |
136 | 140 |
137 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 141 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
138 | 142 |
139 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 143 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
140 }; | 144 }; |
141 | 145 |
142 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 146 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
OLD | NEW |