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

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

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 18 matching lines...) Expand all
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() {} 36 virtual ~ResourceContext() {}
37 #else 37 #else
38 ResourceContext(); 38 ResourceContext();
39 virtual ~ResourceContext(); 39 ~ResourceContext() override;
40 #endif 40 #endif
41 virtual net::HostResolver* GetHostResolver() = 0; 41 virtual net::HostResolver* GetHostResolver() = 0;
42 42
43 // DEPRECATED: This is no longer a valid given isolated apps/sites and 43 // DEPRECATED: This is no longer a valid given isolated apps/sites and
44 // storage partitioning. This getter returns the default context associated 44 // storage partitioning. This getter returns the default context associated
45 // with a BrowsingContext. 45 // with a BrowsingContext.
46 virtual net::URLRequestContext* GetRequestContext() = 0; 46 virtual net::URLRequestContext* GetRequestContext() = 0;
47 47
48 // Get platform ClientCertStore. May return NULL. 48 // Get platform ClientCertStore. May return NULL.
49 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore(); 49 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore();
(...skipping 27 matching lines...) Expand all
77 // 77 //
78 // TODO(perkj): Make this method pure virtual when crbug/315022 is 78 // TODO(perkj): Make this method pure virtual when crbug/315022 is
79 // fixed. 79 // fixed.
80 typedef base::Callback<std::string()> SaltCallback; 80 typedef base::Callback<std::string()> SaltCallback;
81 virtual SaltCallback GetMediaDeviceIDSalt(); 81 virtual SaltCallback GetMediaDeviceIDSalt();
82 }; 82 };
83 83
84 } // namespace content 84 } // namespace content
85 85
86 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 86 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/public/browser/resource_request_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698