| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 return 0 == accessibility_pause_level_; | 541 return 0 == accessibility_pause_level_; |
| 542 } | 542 } |
| 543 | 543 |
| 544 // Checks whether sync is configurable by the user. Returns false if sync is | 544 // Checks whether sync is configurable by the user. Returns false if sync is |
| 545 // disabled or controlled by configuration management. | 545 // disabled or controlled by configuration management. |
| 546 bool IsSyncAccessible(); | 546 bool IsSyncAccessible(); |
| 547 | 547 |
| 548 // Creates an OffTheRecordProfile which points to this Profile. | 548 // Creates an OffTheRecordProfile which points to this Profile. |
| 549 Profile* CreateOffTheRecordProfile(); | 549 Profile* CreateOffTheRecordProfile(); |
| 550 | 550 |
| 551 // Returns the total number of downloads associated with this profile |
| 552 // (not including downloads associated with any OffTheRecordProfile |
| 553 // associated with this profile). |
| 554 int DownloadCount(); |
| 555 |
| 551 protected: | 556 protected: |
| 552 friend class OffTheRecordProfileImpl; | 557 friend class OffTheRecordProfileImpl; |
| 553 | 558 |
| 554 static net::URLRequestContextGetter* default_request_context_; | 559 static net::URLRequestContextGetter* default_request_context_; |
| 555 | 560 |
| 556 private: | 561 private: |
| 557 // ***DEPRECATED**: You should be passing in the specific profile's | 562 // ***DEPRECATED**: You should be passing in the specific profile's |
| 558 // URLRequestContextGetter or using the system URLRequestContextGetter. | 563 // URLRequestContextGetter or using the system URLRequestContextGetter. |
| 559 // | 564 // |
| 560 // Returns the request context for the "default" profile. This may be called | 565 // Returns the request context for the "default" profile. This may be called |
| (...skipping 21 matching lines...) Expand all Loading... |
| 582 struct hash<Profile*> { | 587 struct hash<Profile*> { |
| 583 std::size_t operator()(Profile* const& p) const { | 588 std::size_t operator()(Profile* const& p) const { |
| 584 return reinterpret_cast<std::size_t>(p); | 589 return reinterpret_cast<std::size_t>(p); |
| 585 } | 590 } |
| 586 }; | 591 }; |
| 587 | 592 |
| 588 } // namespace __gnu_cxx | 593 } // namespace __gnu_cxx |
| 589 #endif | 594 #endif |
| 590 | 595 |
| 591 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 596 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |