OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RESOURCE_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_RESOURCE_CONTEXT_H_ |
6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_H_ | 6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 | 14 |
15 class AudioManager; | 15 class AudioManager; |
16 class ChromeAppCacheService; | 16 class ChromeAppCacheService; |
17 class ChromeBlobStorageContext; | 17 class ChromeBlobStorageContext; |
18 class HostZoomMap; | |
19 class MediaObserver; | 18 class MediaObserver; |
20 namespace fileapi { | 19 namespace fileapi { |
21 class FileSystemContext; | 20 class FileSystemContext; |
22 } // namespace fileapi | 21 } // namespace fileapi |
23 namespace media_stream { | 22 namespace media_stream { |
24 class MediaStreamManager; | 23 class MediaStreamManager; |
25 } // namespace media_stream | 24 } // namespace media_stream |
26 namespace net { | 25 namespace net { |
27 class HostResolver; | 26 class HostResolver; |
28 class URLRequestContext; | 27 class URLRequestContext; |
29 } // namespace net | 28 } // namespace net |
30 namespace quota { | 29 namespace quota { |
31 class QuotaManager; | 30 class QuotaManager; |
32 }; // namespace quota | 31 }; // namespace quota |
33 namespace webkit_database { | 32 namespace webkit_database { |
34 class DatabaseTracker; | 33 class DatabaseTracker; |
35 } // namespace webkit_database | 34 } // namespace webkit_database |
36 | 35 |
37 namespace content { | 36 namespace content { |
38 | 37 |
| 38 class HostZoomMap; |
| 39 |
39 // ResourceContext contains the relevant context information required for | 40 // ResourceContext contains the relevant context information required for |
40 // resource loading. It lives on the IO thread, although it is constructed on | 41 // resource loading. It lives on the IO thread, although it is constructed on |
41 // the UI thread. ResourceContext doesn't own anything it points to, it just | 42 // the UI thread. ResourceContext doesn't own anything it points to, it just |
42 // holds pointers to relevant objects to resource loading. | 43 // holds pointers to relevant objects to resource loading. |
43 class CONTENT_EXPORT ResourceContext { | 44 class CONTENT_EXPORT ResourceContext { |
44 public: | 45 public: |
45 virtual ~ResourceContext(); | 46 virtual ~ResourceContext(); |
46 | 47 |
47 // The user data allows the clients to associate data with this request. | 48 // The user data allows the clients to associate data with this request. |
48 // Multiple user data values can be stored under different keys. | 49 // Multiple user data values can be stored under different keys. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Externally-defined data accessible by key. | 105 // Externally-defined data accessible by key. |
105 typedef std::map<const void*, void*> UserDataMap; | 106 typedef std::map<const void*, void*> UserDataMap; |
106 UserDataMap user_data_; | 107 UserDataMap user_data_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(ResourceContext); | 109 DISALLOW_COPY_AND_ASSIGN(ResourceContext); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace content | 112 } // namespace content |
112 | 113 |
113 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_ | 114 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_ |
OLD | NEW |