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

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

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: empty line removal Created 7 years, 1 month 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
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const GURL& requesting_frame, 136 const GURL& requesting_frame,
136 const MIDISysExPermissionCallback& callback) = 0; 137 const MIDISysExPermissionCallback& callback) = 0;
137 138
139 // Cancels a pending MIDI permission request.
140 virtual void CancelMIDISysExPermissionRequest(
141 int render_process_id,
142 int render_view_id,
143 int bridge_id,
144 const GURL& requesting_frame) = 0;
145
138 // Returns the resource context. 146 // Returns the resource context.
139 virtual ResourceContext* GetResourceContext() = 0; 147 virtual ResourceContext* GetResourceContext() = 0;
140 148
141 // Returns the DownloadManagerDelegate for this context. This will be called 149 // Returns the DownloadManagerDelegate for this context. This will be called
142 // once per context. The embedder owns the delegate and is responsible for 150 // once per context. The embedder owns the delegate and is responsible for
143 // ensuring that it outlives DownloadManager. It's valid to return NULL. 151 // ensuring that it outlives DownloadManager. It's valid to return NULL.
144 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() = 0; 152 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() = 0;
145 153
146 // Returns the geolocation permission context for this context. It's valid to 154 // Returns the geolocation permission context for this context. It's valid to
147 // return NULL, in which case geolocation requests will always be allowed. 155 // return NULL, in which case geolocation requests will always be allowed.
(...skipping 12 matching lines...) Expand all
160 struct hash<content::BrowserContext*> { 168 struct hash<content::BrowserContext*> {
161 std::size_t operator()(content::BrowserContext* const& p) const { 169 std::size_t operator()(content::BrowserContext* const& p) const {
162 return reinterpret_cast<std::size_t>(p); 170 return reinterpret_cast<std::size_t>(p);
163 } 171 }
164 }; 172 };
165 173
166 } // namespace BASE_HASH_NAMESPACE 174 } // namespace BASE_HASH_NAMESPACE
167 #endif 175 #endif
168 176
169 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 177 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698