Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: content/public/browser/browser_context.h

Issue 151343002: Web MIDI: make naming convention be consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review boliu #2 Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/media/midi_messages.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/media/midi_messages.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698