OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |