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. It has a | 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The | 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #include <map> | 24 #include <map> |
25 #include <queue> | 25 #include <queue> |
26 | 26 |
27 #include "base/compiler_specific.h" | 27 #include "base/compiler_specific.h" |
28 #include "base/id_map.h" | 28 #include "base/id_map.h" |
29 #include "base/memory/weak_ptr.h" | 29 #include "base/memory/weak_ptr.h" |
30 #include "base/shared_memory.h" | 30 #include "base/shared_memory.h" |
31 #include "base/time.h" | 31 #include "base/time.h" |
32 #include "content/common/browser_plugin/browser_plugin_message_enums.h" | 32 #include "content/common/browser_plugin/browser_plugin_message_enums.h" |
33 #include "content/port/common/input_event_ack_state.h" | |
34 #include "content/public/browser/notification_observer.h" | 33 #include "content/public/browser/notification_observer.h" |
35 #include "content/public/browser/notification_registrar.h" | 34 #include "content/public/browser/notification_registrar.h" |
36 #include "content/public/browser/render_view_host_observer.h" | 35 #include "content/public/browser/render_view_host_observer.h" |
37 #include "content/public/browser/web_contents_delegate.h" | 36 #include "content/public/browser/web_contents_delegate.h" |
38 #include "content/public/browser/web_contents_observer.h" | 37 #include "content/public/browser/web_contents_observer.h" |
| 38 #include "content/public/common/input_event_ack_state.h" |
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
42 #include "ui/gfx/rect.h" | 42 #include "ui/gfx/rect.h" |
43 #include "ui/surface/transport_dib.h" | 43 #include "ui/surface/transport_dib.h" |
44 | 44 |
45 struct BrowserPluginHostMsg_AutoSize_Params; | 45 struct BrowserPluginHostMsg_AutoSize_Params; |
46 struct BrowserPluginHostMsg_Attach_Params; | 46 struct BrowserPluginHostMsg_Attach_Params; |
47 struct BrowserPluginHostMsg_ResizeGuest_Params; | 47 struct BrowserPluginHostMsg_ResizeGuest_Params; |
48 struct ViewHostMsg_CreateWindow_Params; | 48 struct ViewHostMsg_CreateWindow_Params; |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 // This is a queue of messages that are destined to be sent to the embedder | 501 // This is a queue of messages that are destined to be sent to the embedder |
502 // once the guest is attached to a particular embedder. | 502 // once the guest is attached to a particular embedder. |
503 std::queue<IPC::Message*> pending_messages_; | 503 std::queue<IPC::Message*> pending_messages_; |
504 | 504 |
505 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 505 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
506 }; | 506 }; |
507 | 507 |
508 } // namespace content | 508 } // namespace content |
509 | 509 |
510 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 510 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |