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 10 matching lines...) Expand all Loading... |
21 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 21 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
22 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 22 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
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/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/common/edit_command.h" | 33 #include "content/common/edit_command.h" |
34 #include "content/port/common/input_event_ack_state.h" | 34 #include "content/port/common/input_event_ack_state.h" |
35 #include "content/public/browser/notification_observer.h" | 35 #include "content/public/browser/notification_observer.h" |
36 #include "content/public/browser/notification_registrar.h" | 36 #include "content/public/browser/notification_registrar.h" |
37 #include "content/public/browser/render_view_host_observer.h" | 37 #include "content/public/browser/render_view_host_observer.h" |
38 #include "content/public/browser/web_contents_delegate.h" | 38 #include "content/public/browser/web_contents_delegate.h" |
39 #include "content/public/browser/web_contents_observer.h" | 39 #include "content/public/browser/web_contents_observer.h" |
40 #include "third_party/WebKit/public/web/WebDragOperation.h" | 40 #include "third_party/WebKit/public/web/WebDragOperation.h" |
41 #include "third_party/WebKit/public/web/WebDragStatus.h" | 41 #include "third_party/WebKit/public/web/WebDragStatus.h" |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 // This is a queue of messages that are destined to be sent to the embedder | 507 // This is a queue of messages that are destined to be sent to the embedder |
508 // once the guest is attached to a particular embedder. | 508 // once the guest is attached to a particular embedder. |
509 std::queue<IPC::Message*> pending_messages_; | 509 std::queue<IPC::Message*> pending_messages_; |
510 | 510 |
511 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 511 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
512 }; | 512 }; |
513 | 513 |
514 } // namespace content | 514 } // namespace content |
515 | 515 |
516 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 516 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |