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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

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 (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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 void OnUpdateFrameName(int frame_id, 501 void OnUpdateFrameName(int frame_id,
502 bool is_top_level, 502 bool is_top_level,
503 const std::string& name); 503 const std::string& name);
504 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 504 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
505 505
506 // Requests download permission through embedder JavaScript API after 506 // Requests download permission through embedder JavaScript API after
507 // retrieving url information from IO thread. 507 // retrieving url information from IO thread.
508 void DidRetrieveDownloadURLFromRequestId( 508 void DidRetrieveDownloadURLFromRequestId(
509 const std::string& request_method, 509 const std::string& request_method,
510 const base::Callback<void(bool)>& callback, 510 const base::Callback<void(bool)>& callback,
511 const std::string& url); 511 const GURL& url);
512 512
513 // Forwards all messages from the |pending_messages_| queue to the embedder. 513 // Forwards all messages from the |pending_messages_| queue to the embedder.
514 void SendQueuedMessages(); 514 void SendQueuedMessages();
515 515
516 // Static factory instance (always NULL for non-test). 516 // Static factory instance (always NULL for non-test).
517 static BrowserPluginHostFactory* factory_; 517 static BrowserPluginHostFactory* factory_;
518 518
519 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_; 519 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_;
520 WebContentsImpl* embedder_web_contents_; 520 WebContentsImpl* embedder_web_contents_;
521 521
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 // Weak pointer used to ask GeolocationPermissionContext about geolocation 591 // Weak pointer used to ask GeolocationPermissionContext about geolocation
592 // permission. 592 // permission.
593 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 593 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
594 594
595 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 595 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
596 }; 596 };
597 597
598 } // namespace content 598 } // namespace content
599 599
600 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 600 #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