| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/supports_user_data.h" | 13 #include "base/supports_user_data.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| 19 namespace content { | |
| 20 class AppCacheService; | |
| 21 } | |
| 22 | |
| 23 namespace net { | 19 namespace net { |
| 24 class ClientCertStore; | 20 class ClientCertStore; |
| 25 class HostResolver; | 21 class HostResolver; |
| 26 class KeygenHandler; | 22 class KeygenHandler; |
| 27 class URLRequestContext; | 23 class URLRequestContext; |
| 28 } | 24 } |
| 29 | 25 |
| 30 namespace content { | 26 namespace content { |
| 31 | 27 |
| 28 class AppCacheService; |
| 29 |
| 32 // ResourceContext contains the relevant context information required for | 30 // ResourceContext contains the relevant context information required for |
| 33 // 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 |
| 34 // the UI thread. It must be destructed on the IO thread. | 32 // the UI thread. It must be destructed on the IO thread. |
| 35 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { | 33 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { |
| 36 public: | 34 public: |
| 37 #if defined(OS_IOS) | 35 #if defined(OS_IOS) |
| 38 virtual ~ResourceContext() {} | 36 virtual ~ResourceContext() {} |
| 39 #else | 37 #else |
| 40 ResourceContext(); | 38 ResourceContext(); |
| 41 virtual ~ResourceContext(); | 39 virtual ~ResourceContext(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // | 87 // |
| 90 // TODO(perkj): Make this method pure virtual when crbug/315022 is | 88 // TODO(perkj): Make this method pure virtual when crbug/315022 is |
| 91 // fixed. | 89 // fixed. |
| 92 typedef base::Callback<std::string()> SaltCallback; | 90 typedef base::Callback<std::string()> SaltCallback; |
| 93 virtual SaltCallback GetMediaDeviceIDSalt(); | 91 virtual SaltCallback GetMediaDeviceIDSalt(); |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace content | 94 } // namespace content |
| 97 | 95 |
| 98 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ | 96 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ |
| OLD | NEW |