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

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

Issue 840813009: Enable strict-virtual-specifiers for iOS builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 11 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
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 25
26 namespace content { 26 namespace content {
27 27
28 class AppCacheService; 28 class AppCacheService;
29 29
30 // ResourceContext contains the relevant context information required for 30 // ResourceContext contains the relevant context information required for
31 // resource loading. It lives on the IO thread, although it is constructed on 31 // resource loading. It lives on the IO thread, although it is constructed on
32 // the UI thread. It must be destructed on the IO thread. 32 // the UI thread. It must be destructed on the IO thread.
33 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { 33 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
34 public: 34 public:
35 #if defined(OS_IOS) 35 #if !defined(OS_IOS)
36 virtual ~ResourceContext() {}
37 #else
38 ResourceContext(); 36 ResourceContext();
37 #endif
39 ~ResourceContext() override; 38 ~ResourceContext() override;
40 #endif
41 virtual net::HostResolver* GetHostResolver() = 0; 39 virtual net::HostResolver* GetHostResolver() = 0;
42 40
43 // DEPRECATED: This is no longer a valid given isolated apps/sites and 41 // DEPRECATED: This is no longer a valid given isolated apps/sites and
44 // storage partitioning. This getter returns the default context associated 42 // storage partitioning. This getter returns the default context associated
45 // with a BrowsingContext. 43 // with a BrowsingContext.
46 virtual net::URLRequestContext* GetRequestContext() = 0; 44 virtual net::URLRequestContext* GetRequestContext() = 0;
47 45
48 // Get platform ClientCertStore. May return nullptr. 46 // Get platform ClientCertStore. May return nullptr.
49 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore(); 47 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore();
50 48
(...skipping 26 matching lines...) Expand all
77 // 75 //
78 // TODO(perkj): Make this method pure virtual when crbug/315022 is 76 // TODO(perkj): Make this method pure virtual when crbug/315022 is
79 // fixed. 77 // fixed.
80 typedef base::Callback<std::string()> SaltCallback; 78 typedef base::Callback<std::string()> SaltCallback;
81 virtual SaltCallback GetMediaDeviceIDSalt(); 79 virtual SaltCallback GetMediaDeviceIDSalt();
82 }; 80 };
83 81
84 } // namespace content 82 } // namespace content
85 83
86 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 84 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698