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

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: 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 (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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 void OnUpdateFrameName(int frame_id, 511 void OnUpdateFrameName(int frame_id,
512 bool is_top_level, 512 bool is_top_level,
513 const std::string& name); 513 const std::string& name);
514 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 514 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
515 515
516 // Requests download permission through embedder JavaScript API after 516 // Requests download permission through embedder JavaScript API after
517 // retrieving url information from IO thread. 517 // retrieving url information from IO thread.
518 void DidRetrieveDownloadURLFromRequestId( 518 void DidRetrieveDownloadURLFromRequestId(
519 const std::string& request_method, 519 const std::string& request_method,
520 const base::Callback<void(bool)>& callback, 520 const base::Callback<void(bool)>& callback,
521 const std::string& url); 521 const GURL& url);
522 522
523 // Forwards all messages from the |pending_messages_| queue to the embedder. 523 // Forwards all messages from the |pending_messages_| queue to the embedder.
524 void SendQueuedMessages(); 524 void SendQueuedMessages();
525 525
526 // Static factory instance (always NULL for non-test). 526 // Static factory instance (always NULL for non-test).
527 static BrowserPluginHostFactory* factory_; 527 static BrowserPluginHostFactory* factory_;
528 528
529 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_; 529 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_;
530 WebContentsImpl* embedder_web_contents_; 530 WebContentsImpl* embedder_web_contents_;
531 531
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 // Weak pointer used to ask GeolocationPermissionContext about geolocation 601 // Weak pointer used to ask GeolocationPermissionContext about geolocation
602 // permission. 602 // permission.
603 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 603 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
604 604
605 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 605 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
606 }; 606 };
607 607
608 } // namespace content 608 } // namespace content
609 609
610 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 610 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698