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

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

Issue 9226012: Checkpoint: android fixes towards compilation of unit_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: miranda alphabetical issue Created 8 years, 11 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
« no previous file with comments | « chrome/browser/prerender/prerender_manager.h ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/hash_tables.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
15 #include "chrome/browser/net/preconnect.h" // TODO: remove this. 16 #include "chrome/browser/net/preconnect.h" // TODO: remove this.
16 #include "chrome/browser/net/pref_proxy_config_tracker.h" 17 #include "chrome/browser/net/pref_proxy_config_tracker.h"
17 #include "chrome/common/extensions/extension_constants.h" 18 #include "chrome/common/extensions/extension_constants.h"
18 #include "content/public/browser/browser_context.h" 19 #include "content/public/browser/browser_context.h"
19 20
20 class AutocompleteClassifier; 21 class AutocompleteClassifier;
21 class BookmarkModel; 22 class BookmarkModel;
22 class ChromeAppCacheService; 23 class ChromeAppCacheService;
23 class ChromeURLDataManager; 24 class ChromeURLDataManager;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 60 }
60 61
61 namespace chrome_browser_net { 62 namespace chrome_browser_net {
62 class Predictor; 63 class Predictor;
63 } 64 }
64 65
65 namespace content { 66 namespace content {
66 class WebUI; 67 class WebUI;
67 } 68 }
68 69
70 namespace android {
71 class TabContentsProvider;
72 }
73
69 namespace fileapi { 74 namespace fileapi {
70 class FileSystemContext; 75 class FileSystemContext;
71 } 76 }
72 77
73 namespace history { 78 namespace history {
74 class TopSites; 79 class TopSites;
75 class ShortcutsBackend; 80 class ShortcutsBackend;
76 } 81 }
77 82
78 namespace net { 83 namespace net {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 141
137 friend class AutofillDownloadManager; 142 friend class AutofillDownloadManager;
138 friend class ChromePluginMessageFilter; 143 friend class ChromePluginMessageFilter;
139 friend class BrowserListTabContentsProvider; 144 friend class BrowserListTabContentsProvider;
140 friend class MetricsService; 145 friend class MetricsService;
141 friend class SafeBrowsingServiceTestHelper; 146 friend class SafeBrowsingServiceTestHelper;
142 friend class SdchDictionaryFetcher; 147 friend class SdchDictionaryFetcher;
143 friend class SyncTest; 148 friend class SyncTest;
144 friend class Toolbar5Importer; 149 friend class Toolbar5Importer;
145 friend class TranslateManager; 150 friend class TranslateManager;
151 friend class android::TabContentsProvider;
146 friend class chromeos::LibCrosServiceLibraryImpl; 152 friend class chromeos::LibCrosServiceLibraryImpl;
147 friend class chromeos::ResetDefaultProxyConfigServiceTask; 153 friend class chromeos::ResetDefaultProxyConfigServiceTask;
148 154
149 static net::URLRequestContextGetter* GetDefaultRequestContext() { 155 static net::URLRequestContextGetter* GetDefaultRequestContext() {
150 return Profile::GetDefaultRequestContext(); 156 return Profile::GetDefaultRequestContext();
151 } 157 }
152 }; 158 };
153 159
154 // Key used to bind profile to the widget with which it is associated. 160 // Key used to bind profile to the widget with which it is associated.
155 static const char* const kProfileKey; 161 static const char* const kProfileKey;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 bool restored_last_session_; 562 bool restored_last_session_;
557 563
558 // Accessibility events will only be propagated when the pause 564 // Accessibility events will only be propagated when the pause
559 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 565 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
560 // increment and decrement the level, respectively, rather than set it to 566 // increment and decrement the level, respectively, rather than set it to
561 // true or false, so that calls can be nested. 567 // true or false, so that calls can be nested.
562 int accessibility_pause_level_; 568 int accessibility_pause_level_;
563 }; 569 };
564 570
565 #if defined(COMPILER_GCC) 571 #if defined(COMPILER_GCC)
566 namespace __gnu_cxx { 572 namespace BASE_HASH_NAMESPACE {
567 573
568 template<> 574 template<>
569 struct hash<Profile*> { 575 struct hash<Profile*> {
570 std::size_t operator()(Profile* const& p) const { 576 std::size_t operator()(Profile* const& p) const {
571 return reinterpret_cast<std::size_t>(p); 577 return reinterpret_cast<std::size_t>(p);
572 } 578 }
573 }; 579 };
574 580
575 } // namespace __gnu_cxx 581 } // namespace BASE_HASH_NAMESPACE
576 #endif 582 #endif
577 583
578 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 584 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.h ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698