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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |