| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 | 28 |
| 29 class AppCacheService; | 29 class AppCacheService; |
| 30 | 30 |
| 31 // ResourceContext contains the relevant context information required for | 31 // ResourceContext contains the relevant context information required for |
| 32 // resource loading. It lives on the IO thread, although it is constructed on | 32 // resource loading. It lives on the IO thread, although it is constructed on |
| 33 // the UI thread. It must be destructed on the IO thread. | 33 // the UI thread. It must be destructed on the IO thread. |
| 34 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { | 34 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { |
| 35 public: | 35 public: |
| 36 #if !defined(OS_IOS) | |
| 37 ResourceContext(); | 36 ResourceContext(); |
| 38 #endif | |
| 39 ~ResourceContext() override; | 37 ~ResourceContext() override; |
| 40 virtual net::HostResolver* GetHostResolver() = 0; | 38 virtual net::HostResolver* GetHostResolver() = 0; |
| 41 | 39 |
| 42 // DEPRECATED: This is no longer a valid given isolated apps/sites and | 40 // DEPRECATED: This is no longer a valid given isolated apps/sites and |
| 43 // storage partitioning. This getter returns the default context associated | 41 // storage partitioning. This getter returns the default context associated |
| 44 // with a BrowsingContext. | 42 // with a BrowsingContext. |
| 45 virtual net::URLRequestContext* GetRequestContext() = 0; | 43 virtual net::URLRequestContext* GetRequestContext() = 0; |
| 46 | 44 |
| 47 // Get platform ClientCertStore. May return nullptr. | 45 // Get platform ClientCertStore. May return nullptr. |
| 48 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore(); | 46 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 76 // | 74 // |
| 77 // TODO(perkj): Make this method pure virtual when crbug/315022 is | 75 // TODO(perkj): Make this method pure virtual when crbug/315022 is |
| 78 // fixed. | 76 // fixed. |
| 79 typedef base::Callback<std::string()> SaltCallback; | 77 typedef base::Callback<std::string()> SaltCallback; |
| 80 virtual SaltCallback GetMediaDeviceIDSalt(); | 78 virtual SaltCallback GetMediaDeviceIDSalt(); |
| 81 }; | 79 }; |
| 82 | 80 |
| 83 } // namespace content | 81 } // namespace content |
| 84 | 82 |
| 85 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ | 83 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ |
| OLD | NEW |