| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 // Lazy initializes the ProfileIOData object the first time a request context | 222 // Lazy initializes the ProfileIOData object the first time a request context |
| 223 // is requested. The lazy logic is implemented here. The actual initialization | 223 // is requested. The lazy logic is implemented here. The actual initialization |
| 224 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 224 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
| 225 // functions have been provided to assist in common operations. | 225 // functions have been provided to assist in common operations. |
| 226 void LazyInitialize() const; | 226 void LazyInitialize() const; |
| 227 | 227 |
| 228 // Called when the profile is destroyed. | 228 // Called when the profile is destroyed. |
| 229 void ShutdownOnUIThread(); | 229 void ShutdownOnUIThread(); |
| 230 | 230 |
| 231 BooleanPrefMember* enable_referrers() const { | |
| 232 return &enable_referrers_; | |
| 233 } | |
| 234 | |
| 235 ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const { | 231 ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const { |
| 236 return chrome_url_data_manager_backend_.get(); | 232 return chrome_url_data_manager_backend_.get(); |
| 237 } | 233 } |
| 238 | 234 |
| 239 // A ServerBoundCertService object is created by a derived class of | 235 // A ServerBoundCertService object is created by a derived class of |
| 240 // ProfileIOData, and the derived class calls this method to set the | 236 // ProfileIOData, and the derived class calls this method to set the |
| 241 // server_bound_cert_service_ member and transfers ownership to the base | 237 // server_bound_cert_service_ member and transfers ownership to the base |
| 242 // class. | 238 // class. |
| 243 void set_server_bound_cert_service( | 239 void set_server_bound_cert_service( |
| 244 net::ServerBoundCertService* server_bound_cert_service) const; | 240 net::ServerBoundCertService* server_bound_cert_service) const; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 349 |
| 354 // Tracks whether or not we've been lazily initialized. | 350 // Tracks whether or not we've been lazily initialized. |
| 355 mutable bool initialized_; | 351 mutable bool initialized_; |
| 356 | 352 |
| 357 // Data from the UI thread from the Profile, used to initialize ProfileIOData. | 353 // Data from the UI thread from the Profile, used to initialize ProfileIOData. |
| 358 // Deleted after lazy initialization. | 354 // Deleted after lazy initialization. |
| 359 mutable scoped_ptr<ProfileParams> profile_params_; | 355 mutable scoped_ptr<ProfileParams> profile_params_; |
| 360 | 356 |
| 361 // Member variables which are pointed to by the various context objects. | 357 // Member variables which are pointed to by the various context objects. |
| 362 mutable BooleanPrefMember enable_referrers_; | 358 mutable BooleanPrefMember enable_referrers_; |
| 359 mutable BooleanPrefMember enable_do_not_track_; |
| 363 mutable BooleanPrefMember safe_browsing_enabled_; | 360 mutable BooleanPrefMember safe_browsing_enabled_; |
| 364 mutable BooleanPrefMember printing_enabled_; | 361 mutable BooleanPrefMember printing_enabled_; |
| 365 // TODO(marja): Remove session_startup_pref_ if no longer needed. | 362 // TODO(marja): Remove session_startup_pref_ if no longer needed. |
| 366 mutable IntegerPrefMember session_startup_pref_; | 363 mutable IntegerPrefMember session_startup_pref_; |
| 367 | 364 |
| 368 // The state of metrics reporting in the browser that this profile runs on. | 365 // The state of metrics reporting in the browser that this profile runs on. |
| 369 // Unfortunately, since ChromeOS has a separate representation of this state, | 366 // Unfortunately, since ChromeOS has a separate representation of this state, |
| 370 // we need to make one available based on the platform. | 367 // we need to make one available based on the platform. |
| 371 #if defined(OS_CHROMEOS) | 368 #if defined(OS_CHROMEOS) |
| 372 bool enable_metrics_; | 369 bool enable_metrics_; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 413 |
| 417 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 414 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 418 bool initialized_on_UI_thread_; | 415 bool initialized_on_UI_thread_; |
| 419 | 416 |
| 420 bool is_incognito_; | 417 bool is_incognito_; |
| 421 | 418 |
| 422 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 419 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 423 }; | 420 }; |
| 424 | 421 |
| 425 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 422 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |