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

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

Issue 8872036: Profiles: Move NetworkActionPredictor to the ProfileKeyedService framework. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove dtor Created 9 years 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class ExtensionInfoMap; 53 class ExtensionInfoMap;
54 class ExtensionMessageService; 54 class ExtensionMessageService;
55 class ExtensionProcessManager; 55 class ExtensionProcessManager;
56 class ExtensionService; 56 class ExtensionService;
57 class ExtensionSpecialStoragePolicy; 57 class ExtensionSpecialStoragePolicy;
58 class FaviconService; 58 class FaviconService;
59 class FindBarState; 59 class FindBarState;
60 class GAIAInfoUpdateService; 60 class GAIAInfoUpdateService;
61 class HistoryService; 61 class HistoryService;
62 class HostContentSettingsMap; 62 class HostContentSettingsMap;
63 class NetworkActionPredictor;
64 class PasswordStore; 63 class PasswordStore;
65 class PrefService; 64 class PrefService;
66 class ProfileSyncService; 65 class ProfileSyncService;
67 class PromoCounter; 66 class PromoCounter;
68 class ProtocolHandlerRegistry; 67 class ProtocolHandlerRegistry;
69 class SpeechInputPreferences; 68 class SpeechInputPreferences;
70 class SpellCheckHost; 69 class SpellCheckHost;
71 class TemplateURLFetcher; 70 class TemplateURLFetcher;
72 class TestingProfile; 71 class TestingProfile;
73 class TokenService; 72 class TokenService;
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 491
493 // Deletes all network related data since |time|. It deletes transport 492 // Deletes all network related data since |time|. It deletes transport
494 // security state since |time| and it also delete HttpServerProperties data. 493 // security state since |time| and it also delete HttpServerProperties data.
495 // The implementation is free to run this on a background thread, so when this 494 // The implementation is free to run this on a background thread, so when this
496 // method returns data is not guaranteed to be deleted. 495 // method returns data is not guaranteed to be deleted.
497 virtual void ClearNetworkingHistorySince(base::Time time) = 0; 496 virtual void ClearNetworkingHistorySince(base::Time time) = 0;
498 497
499 // Returns the home page for this profile. 498 // Returns the home page for this profile.
500 virtual GURL GetHomePage() = 0; 499 virtual GURL GetHomePage() = 0;
501 500
502 // Returns the NetworkActionPredictor used by the Omnibox to decide when to
503 // prerender or prefetch a result.
504 virtual NetworkActionPredictor* GetNetworkActionPredictor() = 0;
505
506 // Makes the session state, e.g., cookies, persistent across the next restart. 501 // Makes the session state, e.g., cookies, persistent across the next restart.
507 virtual void SaveSessionState() {} 502 virtual void SaveSessionState() {}
508 503
509 std::string GetDebugName(); 504 std::string GetDebugName();
510 505
511 // Returns whether it is a guest session. 506 // Returns whether it is a guest session.
512 static bool IsGuestSession(); 507 static bool IsGuestSession();
513 508
514 #ifdef UNIT_TEST 509 #ifdef UNIT_TEST
515 // Use with caution. GetDefaultRequestContext may be called on any thread! 510 // Use with caution. GetDefaultRequestContext may be called on any thread!
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 struct hash<Profile*> { 575 struct hash<Profile*> {
581 std::size_t operator()(Profile* const& p) const { 576 std::size_t operator()(Profile* const& p) const {
582 return reinterpret_cast<std::size_t>(p); 577 return reinterpret_cast<std::size_t>(p);
583 } 578 }
584 }; 579 };
585 580
586 } // namespace __gnu_cxx 581 } // namespace __gnu_cxx
587 #endif 582 #endif
588 583
589 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 584 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698