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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
168 } | 168 } |
169 | 169 |
170 BooleanPrefMember* signin_allowed() const { | 170 BooleanPrefMember* signin_allowed() const { |
171 return &signin_allowed_; | 171 return &signin_allowed_; |
172 } | 172 } |
173 | 173 |
174 BooleanPrefMember* network_prediction_enabled() const { | 174 BooleanPrefMember* network_prediction_enabled() const { |
175 return &network_prediction_enabled_; | 175 return &network_prediction_enabled_; |
176 } | 176 } |
177 | 177 |
178 std::string GetMediaDeviceIDSalt() const; | 178 content::ResourceContext::SaltCallback GetMediaDeviceIDSalt() const; |
179 | 179 |
180 net::TransportSecurityState* transport_security_state() const { | 180 net::TransportSecurityState* transport_security_state() const { |
181 return transport_security_state_.get(); | 181 return transport_security_state_.get(); |
182 } | 182 } |
183 | 183 |
184 #if defined(OS_CHROMEOS) | 184 #if defined(OS_CHROMEOS) |
185 std::string username_hash() const { | 185 std::string username_hash() const { |
186 return username_hash_; | 186 return username_hash_; |
187 } | 187 } |
188 #endif | 188 #endif |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
367 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; | 367 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; |
368 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore() OVERRIDE; | 368 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore() OVERRIDE; |
369 virtual void CreateKeygenHandler( | 369 virtual void CreateKeygenHandler( |
370 uint32 key_size_in_bits, | 370 uint32 key_size_in_bits, |
371 const std::string& challenge_string, | 371 const std::string& challenge_string, |
372 const GURL& url, | 372 const GURL& url, |
373 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback) | 373 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback) |
374 OVERRIDE; | 374 OVERRIDE; |
375 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; | 375 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; |
376 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; | 376 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; |
377 virtual std::string GetMediaDeviceIDSalt() OVERRIDE; | 377 virtual SaltCallback GetMediaDeviceIDSalt() OVERRIDE; |
378 | 378 |
379 private: | 379 private: |
380 friend class ProfileIOData; | 380 friend class ProfileIOData; |
381 | 381 |
382 // Helper method that returns true if |type| is allowed for |origin|, false | 382 // Helper method that returns true if |type| is allowed for |origin|, false |
383 // otherwise. | 383 // otherwise. |
384 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); | 384 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); |
385 | 385 |
386 ProfileIOData* const io_data_; | 386 ProfileIOData* const io_data_; |
387 | 387 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
469 mutable StringPrefMember google_services_username_; | 469 mutable StringPrefMember google_services_username_; |
470 mutable StringPrefMember google_services_username_pattern_; | 470 mutable StringPrefMember google_services_username_pattern_; |
471 mutable BooleanPrefMember reverse_autologin_enabled_; | 471 mutable BooleanPrefMember reverse_autologin_enabled_; |
472 | 472 |
473 // During the reverse autologin request chain processing, this member saves | 473 // During the reverse autologin request chain processing, this member saves |
474 // the email of the google account that is being signed into. | 474 // the email of the google account that is being signed into. |
475 std::string reverse_autologin_pending_email_; | 475 std::string reverse_autologin_pending_email_; |
476 | 476 |
477 mutable StringListPrefMember one_click_signin_rejected_email_list_; | 477 mutable StringListPrefMember one_click_signin_rejected_email_list_; |
478 | 478 |
479 mutable scoped_ptr<MediaDeviceIDSalt> media_device_id_salt_; | 479 mutable scoped_refptr<MediaDeviceIDSalt> media_device_id_salt_; |
willchan no longer on Chromium
2014/02/12 19:32:23
Who owns MediaDeviceIDSalt now?
| |
480 | 480 |
481 // Member variables which are pointed to by the various context objects. | 481 // Member variables which are pointed to by the various context objects. |
482 mutable BooleanPrefMember enable_referrers_; | 482 mutable BooleanPrefMember enable_referrers_; |
483 mutable BooleanPrefMember enable_do_not_track_; | 483 mutable BooleanPrefMember enable_do_not_track_; |
484 mutable BooleanPrefMember force_safesearch_; | 484 mutable BooleanPrefMember force_safesearch_; |
485 mutable BooleanPrefMember safe_browsing_enabled_; | 485 mutable BooleanPrefMember safe_browsing_enabled_; |
486 mutable BooleanPrefMember printing_enabled_; | 486 mutable BooleanPrefMember printing_enabled_; |
487 mutable BooleanPrefMember sync_disabled_; | 487 mutable BooleanPrefMember sync_disabled_; |
488 mutable BooleanPrefMember signin_allowed_; | 488 mutable BooleanPrefMember signin_allowed_; |
489 mutable BooleanPrefMember network_prediction_enabled_; | 489 mutable BooleanPrefMember network_prediction_enabled_; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 | 547 |
548 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 548 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
549 bool initialized_on_UI_thread_; | 549 bool initialized_on_UI_thread_; |
550 | 550 |
551 bool is_incognito_; | 551 bool is_incognito_; |
552 | 552 |
553 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 553 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
554 }; | 554 }; |
555 | 555 |
556 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 556 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |