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