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

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

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address michaeln's comments Created 8 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
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/supports_user_data.h" 9 #include "base/supports_user_data.h"
9 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
10 11
11 namespace appcache { 12 namespace appcache {
12 class AppCacheService; 13 class AppCacheService;
13 } 14 }
14 15
15 namespace net { 16 namespace net {
16 class HostResolver; 17 class HostResolver;
17 class URLRequestContext; 18 class URLRequestContext;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 22
22 // ResourceContext contains the relevant context information required for 23 // ResourceContext contains the relevant context information required for
23 // resource loading. It lives on the IO thread, although it is constructed on 24 // resource loading. It lives on the IO thread, although it is constructed on
24 // the UI thread. It must be destructed on the IO thread. 25 // the UI thread. It must be destructed on the IO thread.
25 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { 26 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
26 public: 27 public:
27 static appcache::AppCacheService* GetAppCacheService( 28 static appcache::AppCacheService* GetAppCacheService(
28 ResourceContext* resource_context); 29 ResourceContext* resource_context);
29 30
30 ResourceContext(); 31 ResourceContext();
31 virtual ~ResourceContext(); 32 virtual ~ResourceContext();
32 virtual net::HostResolver* GetHostResolver() = 0; 33 virtual net::HostResolver* GetHostResolver() = 0;
33 virtual net::URLRequestContext* GetRequestContext() = 0; 34 virtual net::URLRequestContext* GetRequestContext() = 0;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(ResourceContext);
jam 2012/08/15 15:16:22 ditto
awong 2012/08/17 00:52:39 I had taken the convention to redeclare these thin
jam 2012/08/17 16:42:24 I think this is a little different from putting "v
34 }; 38 };
35 39
36 } // namespace content 40 } // namespace content
37 41
38 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 42 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698