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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 return 0 == accessibility_pause_level_; | 546 return 0 == accessibility_pause_level_; |
547 } | 547 } |
548 | 548 |
549 // Checks whether sync is configurable by the user. Returns false if sync is | 549 // Checks whether sync is configurable by the user. Returns false if sync is |
550 // disabled or controlled by configuration management. | 550 // disabled or controlled by configuration management. |
551 bool IsSyncAccessible(); | 551 bool IsSyncAccessible(); |
552 | 552 |
553 // Creates an OffTheRecordProfile which points to this Profile. | 553 // Creates an OffTheRecordProfile which points to this Profile. |
554 Profile* CreateOffTheRecordProfile(); | 554 Profile* CreateOffTheRecordProfile(); |
555 | 555 |
| 556 // Returns the total number of downloads associated with this profile |
| 557 // (not including downloads associated with any OffTheRecordProfile |
| 558 // associated with this profile). |
| 559 int DownloadCount(); |
| 560 |
556 protected: | 561 protected: |
557 friend class OffTheRecordProfileImpl; | 562 friend class OffTheRecordProfileImpl; |
558 | 563 |
559 static net::URLRequestContextGetter* default_request_context_; | 564 static net::URLRequestContextGetter* default_request_context_; |
560 | 565 |
561 private: | 566 private: |
562 // ***DEPRECATED**: You should be passing in the specific profile's | 567 // ***DEPRECATED**: You should be passing in the specific profile's |
563 // URLRequestContextGetter or using the system URLRequestContextGetter. | 568 // URLRequestContextGetter or using the system URLRequestContextGetter. |
564 // | 569 // |
565 // Returns the request context for the "default" profile. This may be called | 570 // Returns the request context for the "default" profile. This may be called |
(...skipping 21 matching lines...) Expand all Loading... |
587 struct hash<Profile*> { | 592 struct hash<Profile*> { |
588 std::size_t operator()(Profile* const& p) const { | 593 std::size_t operator()(Profile* const& p) const { |
589 return reinterpret_cast<std::size_t>(p); | 594 return reinterpret_cast<std::size_t>(p); |
590 } | 595 } |
591 }; | 596 }; |
592 | 597 |
593 } // namespace __gnu_cxx | 598 } // namespace __gnu_cxx |
594 #endif | 599 #endif |
595 | 600 |
596 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 601 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |