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

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

Issue 7467012: Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 namespace quota { 44 namespace quota {
45 class QuotaManager; 45 class QuotaManager;
46 } 46 }
47 47
48 namespace webkit_database { 48 namespace webkit_database {
49 class DatabaseTracker; 49 class DatabaseTracker;
50 } 50 }
51 51
52 namespace chrome_browser_net {
53 class Predictor;
54 }
55
52 class AutocompleteClassifier; 56 class AutocompleteClassifier;
53 class BookmarkModel; 57 class BookmarkModel;
54 class BrowserSignin; 58 class BrowserSignin;
55 class ChromeAppCacheService; 59 class ChromeAppCacheService;
56 class ChromeBlobStorageContext; 60 class ChromeBlobStorageContext;
57 class ChromeURLDataManager; 61 class ChromeURLDataManager;
58 class CloudPrintProxyService; 62 class CloudPrintProxyService;
59 class DownloadManager; 63 class DownloadManager;
60 class Extension; 64 class Extension;
61 class ExtensionDevToolsManager; 65 class ExtensionDevToolsManager;
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 return 0 == accessibility_pause_level_; 559 return 0 == accessibility_pause_level_;
556 } 560 }
557 561
558 // Checks whether sync is configurable by the user. Returns false if sync is 562 // Checks whether sync is configurable by the user. Returns false if sync is
559 // disabled or controlled by configuration management. 563 // disabled or controlled by configuration management.
560 bool IsSyncAccessible(); 564 bool IsSyncAccessible();
561 565
562 // Creates an OffTheRecordProfile which points to this Profile. 566 // Creates an OffTheRecordProfile which points to this Profile.
563 Profile* CreateOffTheRecordProfile(); 567 Profile* CreateOffTheRecordProfile();
564 568
569 virtual chrome_browser_net::Predictor* GetPredictor() {
willchan no longer on Chromium 2011/07/21 12:10:53 Please call this NetworkPredictor(). Predictor is
rpetterson 2011/08/10 02:24:46 Done.
570 return NULL;
571 }
572
573 virtual void SetPredictor(chrome_browser_net::Predictor* predictor) {}
willchan no longer on Chromium 2011/07/21 12:10:53 This shouldn't be needed either.
rpetterson 2011/08/10 02:24:46 Done.
574
575 // When displaying info in about:dns, the following API is called.
576 void PredictorGetHtmlInfo(std::string* output);
577
578 void PredictorOnTheRecord(bool enable);
willchan no longer on Chromium 2011/07/21 12:10:53 As noted elsewhere, you shouldn't need this.
rpetterson 2011/08/10 02:24:46 Done.
579
565 protected: 580 protected:
566 friend class OffTheRecordProfileImpl; 581 friend class OffTheRecordProfileImpl;
567 582
568 static net::URLRequestContextGetter* default_request_context_; 583 static net::URLRequestContextGetter* default_request_context_;
569 584
570 private: 585 private:
571 bool restored_last_session_; 586 bool restored_last_session_;
572 587
573 // Accessibility events will only be propagated when the pause 588 // Accessibility events will only be propagated when the pause
574 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 589 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
575 // increment and decrement the level, respectively, rather than set it to 590 // increment and decrement the level, respectively, rather than set it to
576 // true or false, so that calls can be nested. 591 // true or false, so that calls can be nested.
577 int accessibility_pause_level_; 592 int accessibility_pause_level_;
578 }; 593 };
579 594
580 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 595 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698