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

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: Updated 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/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( 43 void BrowserPluginGuestDelegate::RequestMediaAccessPermission(
44 const MediaStreamRequest& request, 44 const MediaStreamRequest& request,
45 const MediaResponseCallback& callback) { 45 const MediaResponseCallback& callback) {
46 callback.Run(MediaStreamDevices(), 46 callback.Run(MediaStreamDevices(),
47 MEDIA_DEVICE_INVALID_STATE, 47 MEDIA_DEVICE_INVALID_STATE,
48 scoped_ptr<MediaStreamUI>()); 48 scoped_ptr<MediaStreamUI>());
49 } 49 }
50 50
51 void BrowserPluginGuestDelegate::CanDownload(
52 const std::string& request_method,
53 const GURL& url,
54 const base::Callback<void(bool)>& callback) {
55 callback.Run(true);
56 }
57
58
51 } // namespace content 59 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698