| 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" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 quota::QuotaManager* quota_manager() const; | 68 quota::QuotaManager* quota_manager() const; |
| 69 void set_quota_manager(quota::QuotaManager* quota_manager); | 69 void set_quota_manager(quota::QuotaManager* quota_manager); |
| 70 | 70 |
| 71 HostZoomMap* host_zoom_map() const; | 71 HostZoomMap* host_zoom_map() const; |
| 72 void set_host_zoom_map(HostZoomMap* host_zoom_map); | 72 void set_host_zoom_map(HostZoomMap* host_zoom_map); |
| 73 | 73 |
| 74 // ======================================================================= | 74 // ======================================================================= |
| 75 // TODO(willchan): These don't belong in content/. Remove them eventually. | 75 // TODO(willchan): These don't belong in content/. Remove them eventually. |
| 76 | 76 |
| 77 // TODO(mpcomplete): Kill this one. | |
| 78 const ExtensionInfoMap* extension_info_map() const; | |
| 79 void set_extension_info_map(ExtensionInfoMap* extension_info_map); | |
| 80 | |
| 81 // TODO(cbentzel): Kill this one. | 77 // TODO(cbentzel): Kill this one. |
| 82 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager() const; | 78 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager() const; |
| 83 void set_prerender_manager( | 79 void set_prerender_manager( |
| 84 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager); | 80 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager); |
| 85 | 81 |
| 86 protected: | 82 protected: |
| 87 ResourceContext(); | 83 ResourceContext(); |
| 88 | 84 |
| 89 private: | 85 private: |
| 90 virtual void EnsureInitialized() const = 0; | 86 virtual void EnsureInitialized() const = 0; |
| 91 | 87 |
| 92 net::HostResolver* host_resolver_; | 88 net::HostResolver* host_resolver_; |
| 93 net::URLRequestContext* request_context_; | 89 net::URLRequestContext* request_context_; |
| 94 ChromeAppCacheService* appcache_service_; | 90 ChromeAppCacheService* appcache_service_; |
| 95 webkit_database::DatabaseTracker* database_tracker_; | 91 webkit_database::DatabaseTracker* database_tracker_; |
| 96 fileapi::FileSystemContext* file_system_context_; | 92 fileapi::FileSystemContext* file_system_context_; |
| 97 ChromeBlobStorageContext* blob_storage_context_; | 93 ChromeBlobStorageContext* blob_storage_context_; |
| 98 quota::QuotaManager* quota_manager_; | 94 quota::QuotaManager* quota_manager_; |
| 99 HostZoomMap* host_zoom_map_; | 95 HostZoomMap* host_zoom_map_; |
| 100 | 96 |
| 101 // Externally-defined data accessible by key. | 97 // Externally-defined data accessible by key. |
| 102 typedef std::map<const void*, void*> UserDataMap; | 98 typedef std::map<const void*, void*> UserDataMap; |
| 103 UserDataMap user_data_; | 99 UserDataMap user_data_; |
| 104 | 100 |
| 105 | 101 |
| 106 // ======================================================================= | 102 // ======================================================================= |
| 107 // TODO(willchan): These don't belong in content/. Remove them eventually. | 103 // TODO(willchan): These don't belong in content/. Remove them eventually. |
| 108 | 104 |
| 109 ExtensionInfoMap* extension_info_map_; | |
| 110 base::WeakPtr<prerender::PrerenderManager> prerender_manager_; | 105 base::WeakPtr<prerender::PrerenderManager> prerender_manager_; |
| 111 | 106 |
| 112 DISALLOW_COPY_AND_ASSIGN(ResourceContext); | 107 DISALLOW_COPY_AND_ASSIGN(ResourceContext); |
| 113 }; | 108 }; |
| 114 | 109 |
| 115 } // namespace content | 110 } // namespace content |
| 116 | 111 |
| 117 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_ | 112 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_ |
| OLD | NEW |