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_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // TODO(creis): After isolated app storage is no longer an experimental | 71 // TODO(creis): After isolated app storage is no longer an experimental |
72 // feature, consider making this the default contract for GetRequestContext. | 72 // feature, consider making this the default contract for GetRequestContext. |
73 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 73 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
74 int renderer_child_id) = 0; | 74 int renderer_child_id) = 0; |
75 | 75 |
76 // Returns the request context for media resources asociated with this | 76 // Returns the request context for media resources asociated with this |
77 // context. | 77 // context. |
78 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; | 78 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; |
79 | 79 |
80 // Returns the resource context. | 80 // Returns the resource context. |
81 virtual const ResourceContext& GetResourceContext() = 0; | 81 virtual ResourceContext* GetResourceContext() = 0; |
82 | 82 |
83 // Returns the Hostname <-> Zoom Level map for this context. | 83 // Returns the Hostname <-> Zoom Level map for this context. |
84 virtual HostZoomMap* GetHostZoomMap() = 0; | 84 virtual HostZoomMap* GetHostZoomMap() = 0; |
85 | 85 |
86 // Returns the geolocation permission context for this context. | 86 // Returns the geolocation permission context for this context. |
87 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; | 87 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; |
88 | 88 |
89 // Returns the speech input preferences. SpeechInputPreferences is a | 89 // Returns the speech input preferences. SpeechInputPreferences is a |
90 // ref counted class, so callers should take a reference if needed. | 90 // ref counted class, so callers should take a reference if needed. |
91 virtual SpeechInputPreferences* GetSpeechInputPreferences() = 0; | 91 virtual SpeechInputPreferences* GetSpeechInputPreferences() = 0; |
(...skipping 21 matching lines...) Expand all Loading... |
113 struct hash<content::BrowserContext*> { | 113 struct hash<content::BrowserContext*> { |
114 std::size_t operator()(content::BrowserContext* const& p) const { | 114 std::size_t operator()(content::BrowserContext* const& p) const { |
115 return reinterpret_cast<std::size_t>(p); | 115 return reinterpret_cast<std::size_t>(p); |
116 } | 116 } |
117 }; | 117 }; |
118 | 118 |
119 } // namespace BASE_HASH_NAMESPACE | 119 } // namespace BASE_HASH_NAMESPACE |
120 #endif | 120 #endif |
121 | 121 |
122 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 122 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |