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

Side by Side Diff: chrome/browser/guest_view/web_view/web_view_guest.h

Issue 306473012: Plumb file system permission into WebviewGuest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patch. Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 void OnWebViewGeolocationPermissionResponse( 176 void OnWebViewGeolocationPermissionResponse(
177 int bridge_id, 177 int bridge_id,
178 bool user_gesture, 178 bool user_gesture,
179 const base::Callback<void(bool)>& callback, 179 const base::Callback<void(bool)>& callback,
180 bool allow, 180 bool allow,
181 const std::string& user_input); 181 const std::string& user_input);
182 182
183 void CancelGeolocationPermissionRequest(int bridge_id); 183 void CancelGeolocationPermissionRequest(int bridge_id);
184 184
185 void RequestFileSystemPermission(const GURL& url,
186 const base::Callback<void(bool)>& callback);
187
188 void OnWebViewFileSystemPermissionResponse(
189 const base::Callback<void(bool)>& callback,
190 bool allow,
191 const std::string& user_input);
192
185 void OnWebViewMediaPermissionResponse( 193 void OnWebViewMediaPermissionResponse(
186 const content::MediaStreamRequest& request, 194 const content::MediaStreamRequest& request,
187 const content::MediaResponseCallback& callback, 195 const content::MediaResponseCallback& callback,
188 bool allow, 196 bool allow,
189 const std::string& user_input); 197 const std::string& user_input);
190 198
191 void OnWebViewDownloadPermissionResponse( 199 void OnWebViewDownloadPermissionResponse(
192 const base::Callback<void(bool)>& callback, 200 const base::Callback<void(bool)>& callback,
193 bool allow, 201 bool allow,
194 const std::string& user_input); 202 const std::string& user_input);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 name(name) {} 435 name(name) {}
428 }; 436 };
429 437
430 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 438 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
431 PendingWindowMap pending_new_windows_; 439 PendingWindowMap pending_new_windows_;
432 440
433 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 441 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
434 }; 442 };
435 443
436 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 444 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698