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

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

Issue 7711010: Removal of Profile from content part 9 of 9. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing mock 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/DEPS » ('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) 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
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "chrome/browser/net/preconnect.h" // TODO: remove this. 15 #include "chrome/browser/net/preconnect.h" // TODO: remove this.
16 #include "chrome/common/extensions/extension_constants.h" 16 #include "chrome/common/extensions/extension_constants.h"
17 #include "content/browser/browser_context.h" 17 #include "content/browser/browser_context.h"
18 18
19 namespace base { 19 namespace base {
20 class Time; 20 class Time;
21 } 21 }
22 22
23 namespace chrome {
24 class ChromeContentBrowserClient;
25 }
26
23 namespace chromeos { 27 namespace chromeos {
24 class LibCrosServiceLibraryImpl; 28 class LibCrosServiceLibraryImpl;
25 class ResetDefaultProxyConfigServiceTask; 29 class ResetDefaultProxyConfigServiceTask;
26 } 30 }
27 31
28 namespace fileapi { 32 namespace fileapi {
29 class FileSystemContext; 33 class FileSystemContext;
30 class SandboxedFileSystemContext; 34 class SandboxedFileSystemContext;
31 } 35 }
32 36
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 class Deprecated { 138 class Deprecated {
135 private: 139 private:
136 friend bool IsGoogleGAIACookieInstalled(); 140 friend bool IsGoogleGAIACookieInstalled();
137 friend void chrome_browser_net::PreconnectOnIOThread( 141 friend void chrome_browser_net::PreconnectOnIOThread(
138 const GURL&, 142 const GURL&,
139 chrome_browser_net::UrlInfo::ResolutionMotivation, 143 chrome_browser_net::UrlInfo::ResolutionMotivation,
140 int); 144 int);
141 145
142 friend class AutofillDownloadManager; 146 friend class AutofillDownloadManager;
143 friend class ChromePluginMessageFilter; 147 friend class ChromePluginMessageFilter;
144 friend class DefaultGeolocationArbitratorDependencyFactory;
145 friend class BrowserListTabContentsProvider; 148 friend class BrowserListTabContentsProvider;
146 friend class LiveSyncTest; 149 friend class LiveSyncTest;
147 friend class MetricsService; 150 friend class MetricsService;
148 friend class ResolveProxyMsgHelper;
149 friend class SafeBrowsingServiceTestHelper; 151 friend class SafeBrowsingServiceTestHelper;
150 friend class SdchDictionaryFetcher; 152 friend class SdchDictionaryFetcher;
151 friend class Toolbar5Importer; 153 friend class Toolbar5Importer;
152 friend class TranslateManager; 154 friend class TranslateManager;
155 friend class chrome::ChromeContentBrowserClient;
153 friend class chromeos::LibCrosServiceLibraryImpl; 156 friend class chromeos::LibCrosServiceLibraryImpl;
154 friend class chromeos::ResetDefaultProxyConfigServiceTask; 157 friend class chromeos::ResetDefaultProxyConfigServiceTask;
155 friend class speech_input::SpeechRecognizer;
156 158
157 static net::URLRequestContextGetter* GetDefaultRequestContext() { 159 static net::URLRequestContextGetter* GetDefaultRequestContext() {
158 return Profile::GetDefaultRequestContext(); 160 return Profile::GetDefaultRequestContext();
159 } 161 }
160 }; 162 };
161 163
162 // Key used to bind profile to the widget with which it is associated. 164 // Key used to bind profile to the widget with which it is associated.
163 static const char* const kProfileKey; 165 static const char* const kProfileKey;
164 166
165 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) 167 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 struct hash<Profile*> { 587 struct hash<Profile*> {
586 std::size_t operator()(Profile* const& p) const { 588 std::size_t operator()(Profile* const& p) const {
587 return reinterpret_cast<std::size_t>(p); 589 return reinterpret_cast<std::size_t>(p);
588 } 590 }
589 }; 591 };
590 592
591 } // namespace __gnu_cxx 593 } // namespace __gnu_cxx
592 #endif 594 #endif
593 595
594 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 596 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698