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

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

Issue 9834039: Remove resource_request_info_impl.h dependency from chrome. This also makes blob/file system urls w… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/content_browser.gypi ('k') | content/public/common/url_constants.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/supports_user_data.h" 8 #include "base/supports_user_data.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
11 namespace appcache { 11 namespace appcache {
12 class AppCacheService; 12 class AppCacheService;
13 } 13 }
14 14
15 namespace fileapi {
16 class FileSystemContext;
17 }
18
19 namespace net { 15 namespace net {
20 class HostResolver; 16 class HostResolver;
21 class URLRequestContext; 17 class URLRequestContext;
22 } 18 }
23 19
24 namespace webkit_blob {
25 class BlobStorageController;
26 }
27
28 namespace content { 20 namespace content {
29 21
30 class MediaObserver; 22 class MediaObserver;
31 23
32 // ResourceContext contains the relevant context information required for 24 // ResourceContext contains the relevant context information required for
33 // resource loading. It lives on the IO thread, although it is constructed on 25 // resource loading. It lives on the IO thread, although it is constructed on
34 // the UI thread. 26 // the UI thread.
35 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { 27 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
36 public: 28 public:
37 static appcache::AppCacheService* GetAppCacheService( 29 static appcache::AppCacheService* GetAppCacheService(
38 ResourceContext* resource_context); 30 ResourceContext* resource_context);
39 static fileapi::FileSystemContext* GetFileSystemContext(
40 ResourceContext* resource_context);
41 static webkit_blob::BlobStorageController* GetBlobStorageController(
42 ResourceContext* resource_context);
43 31
44 virtual ~ResourceContext() {} 32 virtual ~ResourceContext() {}
45 virtual net::HostResolver* GetHostResolver() = 0; 33 virtual net::HostResolver* GetHostResolver() = 0;
46 virtual net::URLRequestContext* GetRequestContext() = 0; 34 virtual net::URLRequestContext* GetRequestContext() = 0;
47 virtual MediaObserver* GetMediaObserver() = 0; 35 virtual MediaObserver* GetMediaObserver() = 0;
48 }; 36 };
49 37
50 } // namespace content 38 } // namespace content
51 39
52 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698