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 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // Returns the request context for media resources associated with this | 119 // Returns the request context for media resources associated with this |
120 // context and renderer process. | 120 // context and renderer process. |
121 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 121 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
122 int renderer_child_id) = 0; | 122 int renderer_child_id) = 0; |
123 virtual net::URLRequestContextGetter* | 123 virtual net::URLRequestContextGetter* |
124 GetMediaRequestContextForStoragePartition( | 124 GetMediaRequestContextForStoragePartition( |
125 const base::FilePath& partition_path, | 125 const base::FilePath& partition_path, |
126 bool in_memory) = 0; | 126 bool in_memory) = 0; |
127 | 127 |
128 typedef base::Callback<void(bool)> MIDISysExPermissionCallback; | 128 typedef base::Callback<void(bool)> MidiSysExPermissionCallback; |
129 | 129 |
130 // Requests a permission to use system exclusive messages in MIDI events. | 130 // Requests a permission to use system exclusive messages in MIDI events. |
131 // |callback| will be invoked when the request is resolved. | 131 // |callback| will be invoked when the request is resolved. |
132 virtual void RequestMIDISysExPermission( | 132 virtual void RequestMidiSysExPermission( |
133 int render_process_id, | 133 int render_process_id, |
134 int render_view_id, | 134 int render_view_id, |
135 int bridge_id, | 135 int bridge_id, |
136 const GURL& requesting_frame, | 136 const GURL& requesting_frame, |
137 const MIDISysExPermissionCallback& callback) = 0; | 137 const MidiSysExPermissionCallback& callback) = 0; |
138 | 138 |
139 // Cancels a pending MIDI permission request. | 139 // Cancels a pending MIDI permission request. |
140 virtual void CancelMIDISysExPermissionRequest( | 140 virtual void CancelMidiSysExPermissionRequest( |
141 int render_process_id, | 141 int render_process_id, |
142 int render_view_id, | 142 int render_view_id, |
143 int bridge_id, | 143 int bridge_id, |
144 const GURL& requesting_frame) = 0; | 144 const GURL& requesting_frame) = 0; |
145 | 145 |
146 typedef base::Callback<void(bool)> ProtectedMediaIdentifierPermissionCallback; | 146 typedef base::Callback<void(bool)> ProtectedMediaIdentifierPermissionCallback; |
147 | 147 |
148 // Request permission to access protected media identifier. The callback will | 148 // Request permission to access protected media identifier. The callback will |
149 // tell whether it's permitted. | 149 // tell whether it's permitted. |
150 virtual void RequestProtectedMediaIdentifierPermission( | 150 virtual void RequestProtectedMediaIdentifierPermission( |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 struct hash<content::BrowserContext*> { | 184 struct hash<content::BrowserContext*> { |
185 std::size_t operator()(content::BrowserContext* const& p) const { | 185 std::size_t operator()(content::BrowserContext* const& p) const { |
186 return reinterpret_cast<std::size_t>(p); | 186 return reinterpret_cast<std::size_t>(p); |
187 } | 187 } |
188 }; | 188 }; |
189 | 189 |
190 } // namespace BASE_HASH_NAMESPACE | 190 } // namespace BASE_HASH_NAMESPACE |
191 #endif | 191 #endif |
192 | 192 |
193 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 193 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |