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 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
7 | 7 |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Get the minwidth attribute value. | 70 // Get the minwidth attribute value. |
71 int min_width_attribute() const { return min_width_; } | 71 int min_width_attribute() const { return min_width_; } |
72 // Set the minwidth attribute value. | 72 // Set the minwidth attribute value. |
73 void SetMinWidthAttribute(int minwidth); | 73 void SetMinWidthAttribute(int minwidth); |
74 bool InAutoSizeBounds(const gfx::Size& size) const; | 74 bool InAutoSizeBounds(const gfx::Size& size) const; |
75 | 75 |
76 // Get the guest's DOMWindow proxy. | 76 // Get the guest's DOMWindow proxy. |
77 NPObject* GetContentWindow() const; | 77 NPObject* GetContentWindow() const; |
78 | 78 |
79 // Returns Chrome's process ID for the current guest. | 79 // Returns Chrome's process ID for the current guest. |
80 int process_id() const { return process_id_; } | 80 int guest_process_id() const { return guest_process_id_; } |
| 81 // Returns Chrome's route ID for the current guest. |
| 82 int guest_route_id() const { return guest_route_id_; } |
| 83 |
81 // The partition identifier string is stored as UTF-8. | 84 // The partition identifier string is stored as UTF-8. |
82 std::string GetPartitionAttribute() const; | 85 std::string GetPartitionAttribute() const; |
83 // Query whether the guest can navigate back to the previous entry. | 86 // Query whether the guest can navigate back to the previous entry. |
84 bool CanGoBack() const; | 87 bool CanGoBack() const; |
85 // Query whether the guest can navigation forward to the next entry. | 88 // Query whether the guest can navigation forward to the next entry. |
86 bool CanGoForward() const; | 89 bool CanGoForward() const; |
87 // This method can be successfully called only before the first navigation for | 90 // This method can be successfully called only before the first navigation for |
88 // this instance of BrowserPlugin. If an error occurs, the |error_message| is | 91 // this instance of BrowserPlugin. If an error occurs, the |error_message| is |
89 // set appropriately to indicate the failure reason. | 92 // set appropriately to indicate the failure reason. |
90 bool SetPartitionAttribute(const std::string& partition_id, | 93 bool SetPartitionAttribute(const std::string& partition_id, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 bool guest_crashed_; | 297 bool guest_crashed_; |
295 scoped_ptr<BrowserPluginHostMsg_ResizeGuest_Params> pending_resize_params_; | 298 scoped_ptr<BrowserPluginHostMsg_ResizeGuest_Params> pending_resize_params_; |
296 // True if we have ever sent a NavigateGuest message to the embedder. | 299 // True if we have ever sent a NavigateGuest message to the embedder. |
297 bool navigate_src_sent_; | 300 bool navigate_src_sent_; |
298 std::string src_; | 301 std::string src_; |
299 bool auto_size_; | 302 bool auto_size_; |
300 int max_height_; | 303 int max_height_; |
301 int max_width_; | 304 int max_width_; |
302 int min_height_; | 305 int min_height_; |
303 int min_width_; | 306 int min_width_; |
304 int process_id_; | 307 int guest_process_id_; |
| 308 int guest_route_id_; |
305 std::string storage_partition_id_; | 309 std::string storage_partition_id_; |
306 bool persist_storage_; | 310 bool persist_storage_; |
307 bool valid_partition_id_; | 311 bool valid_partition_id_; |
308 int content_window_routing_id_; | 312 int content_window_routing_id_; |
309 bool plugin_focused_; | 313 bool plugin_focused_; |
310 // Tracks the visibility of the browser plugin regardless of the whole | 314 // Tracks the visibility of the browser plugin regardless of the whole |
311 // embedder RenderView's visibility. | 315 // embedder RenderView's visibility. |
312 bool visible_; | 316 bool visible_; |
313 std::string name_; | 317 std::string name_; |
314 | 318 |
(...skipping 24 matching lines...) Expand all Loading... |
339 // Used for HW compositing. | 343 // Used for HW compositing. |
340 bool compositing_enabled_; | 344 bool compositing_enabled_; |
341 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_; | 345 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_; |
342 | 346 |
343 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 347 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
344 }; | 348 }; |
345 | 349 |
346 } // namespace content | 350 } // namespace content |
347 | 351 |
348 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 352 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |