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_PROFILE_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // functions have been provided to assist in common operations. | 176 // functions have been provided to assist in common operations. |
177 void LazyInitialize() const; | 177 void LazyInitialize() const; |
178 | 178 |
179 // Called when the profile is destroyed. | 179 // Called when the profile is destroyed. |
180 void ShutdownOnUIThread(); | 180 void ShutdownOnUIThread(); |
181 | 181 |
182 BooleanPrefMember* enable_referrers() const { | 182 BooleanPrefMember* enable_referrers() const { |
183 return &enable_referrers_; | 183 return &enable_referrers_; |
184 } | 184 } |
185 | 185 |
| 186 BooleanPrefMember* enable_metrics() const { |
| 187 return &enable_metrics_; |
| 188 } |
| 189 |
186 ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const { | 190 ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const { |
187 return chrome_url_data_manager_backend_.get(); | 191 return chrome_url_data_manager_backend_.get(); |
188 } | 192 } |
189 | 193 |
190 // A ServerBoundCertService object is created by a derived class of | 194 // A ServerBoundCertService object is created by a derived class of |
191 // ProfileIOData, and the derived class calls this method to set the | 195 // ProfileIOData, and the derived class calls this method to set the |
192 // server_bound_cert_service_ member and transfers ownership to the base | 196 // server_bound_cert_service_ member and transfers ownership to the base |
193 // class. | 197 // class. |
194 void set_server_bound_cert_service( | 198 void set_server_bound_cert_service( |
195 net::ServerBoundCertService* server_bound_cert_service) const; | 199 net::ServerBoundCertService* server_bound_cert_service) const; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 269 |
266 // Tracks whether or not we've been lazily initialized. | 270 // Tracks whether or not we've been lazily initialized. |
267 mutable bool initialized_; | 271 mutable bool initialized_; |
268 | 272 |
269 // Data from the UI thread from the Profile, used to initialize ProfileIOData. | 273 // Data from the UI thread from the Profile, used to initialize ProfileIOData. |
270 // Deleted after lazy initialization. | 274 // Deleted after lazy initialization. |
271 mutable scoped_ptr<ProfileParams> profile_params_; | 275 mutable scoped_ptr<ProfileParams> profile_params_; |
272 | 276 |
273 // Member variables which are pointed to by the various context objects. | 277 // Member variables which are pointed to by the various context objects. |
274 mutable BooleanPrefMember enable_referrers_; | 278 mutable BooleanPrefMember enable_referrers_; |
| 279 mutable BooleanPrefMember enable_metrics_; |
275 mutable BooleanPrefMember clear_local_state_on_exit_; | 280 mutable BooleanPrefMember clear_local_state_on_exit_; |
276 mutable BooleanPrefMember safe_browsing_enabled_; | 281 mutable BooleanPrefMember safe_browsing_enabled_; |
277 // TODO(marja): Remove session_startup_pref_ if no longer needed. | 282 // TODO(marja): Remove session_startup_pref_ if no longer needed. |
278 mutable IntegerPrefMember session_startup_pref_; | 283 mutable IntegerPrefMember session_startup_pref_; |
279 | 284 |
280 // Pointed to by NetworkDelegate. | 285 // Pointed to by NetworkDelegate. |
281 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; | 286 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; |
282 | 287 |
283 // Pointed to by URLRequestContext. | 288 // Pointed to by URLRequestContext. |
284 mutable scoped_ptr<ChromeURLDataManagerBackend> | 289 mutable scoped_ptr<ChromeURLDataManagerBackend> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // One AppRequestContext per isolated app. | 321 // One AppRequestContext per isolated app. |
317 mutable AppRequestContextMap app_request_context_map_; | 322 mutable AppRequestContextMap app_request_context_map_; |
318 | 323 |
319 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 324 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
320 bool initialized_on_UI_thread_; | 325 bool initialized_on_UI_thread_; |
321 | 326 |
322 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 327 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
323 }; | 328 }; |
324 | 329 |
325 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 330 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |