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

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.cc

Issue 235733002: <webview>: Move media request to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_geolocation_to_chrome
Patch Set: Fixed rebase Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/public/browser/browser_plugin_guest_delegate.h" 5 #include "content/public/browser/browser_plugin_guest_delegate.h"
6 6
7 #include "base/callback.h"
8
7 namespace content { 9 namespace content {
8 10
9 bool BrowserPluginGuestDelegate::HandleKeyboardEvent( 11 bool BrowserPluginGuestDelegate::HandleKeyboardEvent(
10 const NativeWebKeyboardEvent& event) { 12 const NativeWebKeyboardEvent& event) {
11 return false; 13 return false;
12 } 14 }
13 15
14 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { 16 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() {
15 return false; 17 return false;
16 } 18 }
17 19
18 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { 20 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const {
19 return false; 21 return false;
20 } 22 }
21 23
22 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { 24 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) {
23 return GURL(src); 25 return GURL(src);
24 } 26 }
25 27
28 void BrowserPluginGuestDelegate::RequestMediaAccessPermission(
29 const MediaStreamRequest& request,
30 const MediaResponseCallback& callback) {
31 callback.Run(MediaStreamDevices(),
32 MEDIA_DEVICE_INVALID_STATE,
33 scoped_ptr<MediaStreamUI>());
34 }
35
26 } // namespace content 36 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/browser_plugin_guest_delegate.h ('k') | content/public/common/browser_plugin_permission_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698