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

Side by Side Diff: content/public/browser/resource_context.h

Issue 9416070: Move creation and ownership of HostZoomMap to content instead of having every embedder do this. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac/cros browsertests Created 8 years, 10 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 | « content/public/browser/host_zoom_map.h ('k') | content/shell/shell_browser_context.h » ('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 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 17 matching lines...) Expand all
28 class HostResolver; 28 class HostResolver;
29 class URLRequestContext; 29 class URLRequestContext;
30 } 30 }
31 31
32 namespace webkit_blob { 32 namespace webkit_blob {
33 class BlobStorageController; 33 class BlobStorageController;
34 } 34 }
35 35
36 namespace content { 36 namespace content {
37 37
38 class HostZoomMap;
39
40 // ResourceContext contains the relevant context information required for 38 // ResourceContext contains the relevant context information required for
41 // resource loading. It lives on the IO thread, although it is constructed on 39 // resource loading. It lives on the IO thread, although it is constructed on
42 // the UI thread. 40 // the UI thread.
43 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { 41 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
44 public: 42 public:
45 static appcache::AppCacheService* GetAppCacheService( 43 static appcache::AppCacheService* GetAppCacheService(
46 ResourceContext* resource_context); 44 ResourceContext* resource_context);
47 static fileapi::FileSystemContext* GetFileSystemContext( 45 static fileapi::FileSystemContext* GetFileSystemContext(
48 ResourceContext* resource_context); 46 ResourceContext* resource_context);
49 static webkit_blob::BlobStorageController* GetBlobStorageController( 47 static webkit_blob::BlobStorageController* GetBlobStorageController(
50 ResourceContext* resource_context); 48 ResourceContext* resource_context);
51 49
52 virtual ~ResourceContext() {} 50 virtual ~ResourceContext() {}
53 virtual net::HostResolver* GetHostResolver() = 0; 51 virtual net::HostResolver* GetHostResolver() = 0;
54 virtual net::URLRequestContext* GetRequestContext() = 0; 52 virtual net::URLRequestContext* GetRequestContext() = 0;
55 virtual HostZoomMap* GetHostZoomMap() = 0;
56 virtual MediaObserver* GetMediaObserver() = 0; 53 virtual MediaObserver* GetMediaObserver() = 0;
57 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0; 54 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0;
58 virtual AudioManager* GetAudioManager() = 0; 55 virtual AudioManager* GetAudioManager() = 0;
59 }; 56 };
60 57
61 } // namespace content 58 } // namespace content
62 59
63 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 60 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/browser/host_zoom_map.h ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698