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

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

Issue 235923003: <webview>: Move download permission to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_media_to_chrome
Patch Set: Merge with ToT 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" 7 #include "base/callback.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( 28 void BrowserPluginGuestDelegate::RequestMediaAccessPermission(
29 const MediaStreamRequest& request, 29 const MediaStreamRequest& request,
30 const MediaResponseCallback& callback) { 30 const MediaResponseCallback& callback) {
31 callback.Run(MediaStreamDevices(), 31 callback.Run(MediaStreamDevices(),
32 MEDIA_DEVICE_INVALID_STATE, 32 MEDIA_DEVICE_INVALID_STATE,
33 scoped_ptr<MediaStreamUI>()); 33 scoped_ptr<MediaStreamUI>());
34 } 34 }
35 35
36 void BrowserPluginGuestDelegate::CanDownload(
37 const std::string& request_method,
38 const GURL& url,
39 const base::Callback<void(bool)>& callback) {
40 callback.Run(true);
41 }
42
36 } // namespace content 43 } // 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