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

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

Issue 10535026: Move creation and ownership of DownloadManager from the embedder to content. This matches all the o… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros compile Created 8 years, 6 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) 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_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // The default profile implementation. 47 // The default profile implementation.
48 class ProfileImpl : public Profile, 48 class ProfileImpl : public Profile,
49 public content::NotificationObserver { 49 public content::NotificationObserver {
50 public: 50 public:
51 virtual ~ProfileImpl(); 51 virtual ~ProfileImpl();
52 52
53 static void RegisterUserPrefs(PrefService* prefs); 53 static void RegisterUserPrefs(PrefService* prefs);
54 54
55 // content::BrowserContext implementation: 55 // content::BrowserContext implementation:
56 virtual FilePath GetPath() OVERRIDE; 56 virtual FilePath GetPath() OVERRIDE;
57 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; 57 virtual content::DownloadManagerDelegate*
58 GetDownloadManagerDelegate() OVERRIDE;
58 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 59 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
59 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 60 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
60 int renderer_child_id) OVERRIDE; 61 int renderer_child_id) OVERRIDE;
61 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; 62 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE;
62 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 63 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
63 virtual content::GeolocationPermissionContext* 64 virtual content::GeolocationPermissionContext*
64 GetGeolocationPermissionContext() OVERRIDE; 65 GetGeolocationPermissionContext() OVERRIDE;
65 virtual content::SpeechRecognitionPreferences* 66 virtual content::SpeechRecognitionPreferences*
66 GetSpeechRecognitionPreferences() OVERRIDE; 67 GetSpeechRecognitionPreferences() OVERRIDE;
67 virtual bool DidLastSessionExitCleanly() OVERRIDE; 68 virtual bool DidLastSessionExitCleanly() OVERRIDE;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 Profile::Delegate* delegate_; 274 Profile::Delegate* delegate_;
274 275
275 chrome_browser_net::Predictor* predictor_; 276 chrome_browser_net::Predictor* predictor_;
276 277
277 bool session_restore_enabled_; 278 bool session_restore_enabled_;
278 279
279 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 280 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
280 }; 281 };
281 282
282 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 283 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698