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 BrowserPluginEmbedder handles messages coming from a BrowserPlugin's | 5 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's |
6 // embedder that are not directed at any particular existing guest process. | 6 // embedder that are not directed at any particular existing guest process. |
7 // In the beginning, when a BrowserPlugin instance in the embedder renderer | 7 // In the beginning, when a BrowserPlugin instance in the embedder renderer |
8 // process requests an initial navigation, the WebContents for that renderer | 8 // process requests an initial navigation, the WebContents for that renderer |
9 // renderer creates a BrowserPluginEmbedder for itself. The | 9 // renderer creates a BrowserPluginEmbedder for itself. The |
10 // BrowserPluginEmbedder, in turn, forwards the requests to a | 10 // BrowserPluginEmbedder, in turn, forwards the requests to a |
11 // BrowserPluginGuestManager, which creates and manages the lifetime of the new | 11 // BrowserPluginGuestManager, which creates and manages the lifetime of the new |
12 // guest. | 12 // guest. |
13 | 13 |
14 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 14 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
15 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 15 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
16 | 16 |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
20 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
21 #include "third_party/WebKit/public/web/WebDragOperation.h" | 21 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
22 | 22 |
23 struct BrowserPluginHostMsg_Attach_Params; | 23 struct BrowserPluginHostMsg_Attach_Params; |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 | 26 |
27 class BrowserPluginGuest; | 27 class BrowserPluginGuest; |
28 class BrowserPluginGuestManager; | 28 class BrowserPluginGuestManager; |
29 class RenderWidgetHostImpl; | 29 class RenderWidgetHostImpl; |
30 struct NativeWebKeyboardEvent; | 30 struct NativeWebKeyboardEvent; |
31 | 31 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 bool guest_drag_ending_; | 129 bool guest_drag_ending_; |
130 | 130 |
131 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; | 131 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 133 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace content | 136 } // namespace content |
137 | 137 |
138 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 138 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |