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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 const std::string& user_input); 307 const std::string& user_input);
308 308
309 // Overrides factory for testing. Default (NULL) value indicates regular 309 // Overrides factory for testing. Default (NULL) value indicates regular
310 // (non-test) environment. 310 // (non-test) environment.
311 static void set_factory_for_testing(BrowserPluginHostFactory* factory) { 311 static void set_factory_for_testing(BrowserPluginHostFactory* factory) {
312 BrowserPluginGuest::factory_ = factory; 312 BrowserPluginGuest::factory_ = factory;
313 } 313 }
314 314
315 void SetZoom(double zoom_factor); 315 void SetZoom(double zoom_factor);
316 316
317 void PointerLockPermissionResponse(bool allow);
318
317 private: 319 private:
318 class EmbedderWebContentsObserver; 320 class EmbedderWebContentsObserver;
319 friend class TestBrowserPluginGuest; 321 friend class TestBrowserPluginGuest;
320 322
321 class DownloadRequest; 323 class DownloadRequest;
322 class JavaScriptDialogRequest; 324 class JavaScriptDialogRequest;
323 class NewWindowRequest; 325 class NewWindowRequest;
324 class PermissionRequest; 326 class PermissionRequest;
325 class PointerLockRequest;
326 327
327 // Tracks the name, and target URL of the new window and whether or not it has 328 // Tracks the name, and target URL of the new window and whether or not it has
328 // changed since the WebContents has been created and before the new window 329 // changed since the WebContents has been created and before the new window
329 // has been attached to a BrowserPlugin. Once the first navigation commits, we 330 // has been attached to a BrowserPlugin. Once the first navigation commits, we
330 // no longer track this information. 331 // no longer track this information.
331 struct NewWindowInfo { 332 struct NewWindowInfo {
332 bool changed; 333 bool changed;
333 GURL url; 334 GURL url;
334 std::string name; 335 std::string name;
335 NewWindowInfo(const GURL& url, const std::string& name) : 336 NewWindowInfo(const GURL& url, const std::string& name) :
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 // Weak pointer used to ask GeolocationPermissionContext about geolocation 592 // Weak pointer used to ask GeolocationPermissionContext about geolocation
592 // permission. 593 // permission.
593 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 594 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
594 595
595 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 596 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
596 }; 597 };
597 598
598 } // namespace content 599 } // namespace content
599 600
600 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 601 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/guestview/webview/webview_permission_types.h ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698