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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 | 64 |
65 ChromeBlobStorageContext* blob_storage_context() const; | 65 ChromeBlobStorageContext* blob_storage_context() const; |
66 void set_blob_storage_context(ChromeBlobStorageContext* context); | 66 void set_blob_storage_context(ChromeBlobStorageContext* context); |
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 bool safe_browsing_enabled() const; | |
75 void set_safe_browsing_enabled(bool safe_browsing_enabled); | |
mattm
2011/06/23 01:24:25
since safebrowsing is under chrome/ I guess this m
Miranda Callahan
2011/06/23 14:05:26
Done.
| |
76 | |
74 // ======================================================================= | 77 // ======================================================================= |
75 // TODO(willchan): These don't belong in content/. Remove them eventually. | 78 // TODO(willchan): These don't belong in content/. Remove them eventually. |
76 | 79 |
77 // TODO(cbentzel): Kill this one. | 80 // TODO(cbentzel): Kill this one. |
78 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager() const; | 81 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager() const; |
79 void set_prerender_manager( | 82 void set_prerender_manager( |
80 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager); | 83 const base::WeakPtr<prerender::PrerenderManager>& prerender_manager); |
81 | 84 |
82 protected: | 85 protected: |
83 ResourceContext(); | 86 ResourceContext(); |
(...skipping 13 matching lines...) Expand all Loading... | |
97 // Externally-defined data accessible by key. | 100 // Externally-defined data accessible by key. |
98 typedef std::map<const void*, void*> UserDataMap; | 101 typedef std::map<const void*, void*> UserDataMap; |
99 UserDataMap user_data_; | 102 UserDataMap user_data_; |
100 | 103 |
101 | 104 |
102 // ======================================================================= | 105 // ======================================================================= |
103 // TODO(willchan): These don't belong in content/. Remove them eventually. | 106 // TODO(willchan): These don't belong in content/. Remove them eventually. |
104 | 107 |
105 base::WeakPtr<prerender::PrerenderManager> prerender_manager_; | 108 base::WeakPtr<prerender::PrerenderManager> prerender_manager_; |
106 | 109 |
110 bool safe_browsing_enabled_; | |
111 | |
107 DISALLOW_COPY_AND_ASSIGN(ResourceContext); | 112 DISALLOW_COPY_AND_ASSIGN(ResourceContext); |
108 }; | 113 }; |
109 | 114 |
110 } // namespace content | 115 } // namespace content |
111 | 116 |
112 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_ | 117 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_ |
OLD | NEW |