| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 int host_routing_id, | 212 int host_routing_id, |
| 213 scoped_ptr<cc::CompositorFrame> frame); | 213 scoped_ptr<cc::CompositorFrame> frame); |
| 214 | 214 |
| 215 void SetContentsOpaque(bool opaque); | 215 void SetContentsOpaque(bool opaque); |
| 216 | 216 |
| 217 // Find the given |search_text| in the page. Returns true if the find request | 217 // Find the given |search_text| in the page. Returns true if the find request |
| 218 // is handled by this browser plugin guest. | 218 // is handled by this browser plugin guest. |
| 219 bool Find(int request_id, | 219 bool Find(int request_id, |
| 220 const base::string16& search_text, | 220 const base::string16& search_text, |
| 221 const blink::WebFindOptions& options); | 221 const blink::WebFindOptions& options); |
| 222 bool StopFinding(StopFindAction action); |
| 222 | 223 |
| 223 private: | 224 private: |
| 224 class EmbedderVisibilityObserver; | 225 class EmbedderVisibilityObserver; |
| 225 | 226 |
| 226 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and | 227 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and |
| 227 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. | 228 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. |
| 228 BrowserPluginGuest(bool has_render_view, | 229 BrowserPluginGuest(bool has_render_view, |
| 229 WebContentsImpl* web_contents, | 230 WebContentsImpl* web_contents, |
| 230 BrowserPluginGuestDelegate* delegate); | 231 BrowserPluginGuestDelegate* delegate); |
| 231 | 232 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 414 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 414 // permission. | 415 // permission. |
| 415 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 416 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 416 | 417 |
| 417 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 418 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 418 }; | 419 }; |
| 419 | 420 |
| 420 } // namespace content | 421 } // namespace content |
| 421 | 422 |
| 422 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 423 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |