Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 7466033: Fix warning prompting on closing a window that will cancel downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various fixes related to try jobs. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698