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

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

Issue 239113007: <webview>: Move pointerLock permission to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_downloads_to_chrome
Patch Set: 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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Asks permission to use the camera and/or microphone. If permission is 104 // Asks permission to use the camera and/or microphone. If permission is
105 // granted, a call should be made to |callback| with the devices. If the 105 // granted, a call should be made to |callback| with the devices. If the
106 // request is denied, a call should be made to |callback| with an empty list 106 // request is denied, a call should be made to |callback| with an empty list
107 // of devices. |request| has the details of the request (e.g. which of audio 107 // of devices. |request| has the details of the request (e.g. which of audio
108 // and/or video devices are requested, and lists of available devices). 108 // and/or video devices are requested, and lists of available devices).
109 virtual void RequestMediaAccessPermission( 109 virtual void RequestMediaAccessPermission(
110 const MediaStreamRequest& request, 110 const MediaStreamRequest& request,
111 const MediaResponseCallback& callback); 111 const MediaResponseCallback& callback);
112 112
113 // Asks the delegate if the given tab can download. 113 // Asks the delegate if the given guest can download.
114 // Invoking the |callback| synchronously is OK. 114 // Invoking the |callback| synchronously is OK.
115 virtual void CanDownload(const std::string& request_method, 115 virtual void CanDownload(const std::string& request_method,
116 const GURL& url, 116 const GURL& url,
117 const base::Callback<void(bool)>& callback); 117 const base::Callback<void(bool)>& callback);
118
119 // Asks the delegate if the given guest can lock the pointer.
120 // Invoking the |callback| synchronously is OK.
121 virtual void RequestPointerLockPermission(
122 bool user_gesture,
123 bool last_unlocked_by_target,
124 const base::Callback<void(bool)>& callback) {}
118 }; 125 };
119 126
120 } // namespace content 127 } // namespace content
121 128
122 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 129 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/browser_plugin/browser_plugin_constants.cc ('k') | content/public/common/browser_plugin_permission_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698