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

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

Issue 11365253: Add empty constructor/destructor to ResourceContext on iOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove iOS constructor Created 8 years, 1 month 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/browser/resource_context_impl.cc ('k') | no next file » | 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 "build/build_config.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 12
12 namespace appcache { 13 namespace appcache {
13 class AppCacheService; 14 class AppCacheService;
14 } 15 }
15 16
16 namespace net { 17 namespace net {
17 class HostResolver; 18 class HostResolver;
18 class URLRequestContext; 19 class URLRequestContext;
19 } 20 }
20 21
21 namespace content { 22 namespace content {
22 23
23 // ResourceContext contains the relevant context information required for 24 // ResourceContext contains the relevant context information required for
24 // 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
25 // the UI thread. It must be destructed on the IO thread. 26 // the UI thread. It must be destructed on the IO thread.
26 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { 27 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
27 public: 28 public:
29 #if defined(OS_IOS)
30 virtual ~ResourceContext() {}
31 #else
28 ResourceContext(); 32 ResourceContext();
29 virtual ~ResourceContext(); 33 virtual ~ResourceContext();
34 #endif
30 virtual net::HostResolver* GetHostResolver() = 0; 35 virtual net::HostResolver* GetHostResolver() = 0;
31 36
32 // DEPRECATED: This is no longer a valid given isolated apps/sites and 37 // DEPRECATED: This is no longer a valid given isolated apps/sites and
33 // storage partitioning. This getter returns the default context associated 38 // storage partitioning. This getter returns the default context associated
34 // with a BrowsingContext. 39 // with a BrowsingContext.
35 virtual net::URLRequestContext* GetRequestContext() = 0; 40 virtual net::URLRequestContext* GetRequestContext() = 0;
36 }; 41 };
37 42
38 } // namespace content 43 } // namespace content
39 44
40 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 45 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698