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 <map> | 17 #include <map> |
18 | 18 |
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 | 21 |
22 struct BrowserPluginHostMsg_CreateGuest_Params; | 22 struct BrowserPluginHostMsg_CreateGuest_Params; |
23 struct BrowserPluginHostMsg_ResizeGuest_Params; | 23 struct BrowserPluginHostMsg_ResizeGuest_Params; |
24 | 24 |
25 namespace gfx { | 25 namespace gfx { |
26 class Point; | 26 class Point; |
27 } | 27 } |
28 | 28 |
29 namespace gpu { | |
alexst (slow to review)
2013/03/06 21:54:27
We shouldn't need this here, it's not referenced a
| |
30 struct Mailbox; | |
31 } | |
32 | |
29 namespace content { | 33 namespace content { |
30 | 34 |
31 class BrowserPluginGuestManager; | 35 class BrowserPluginGuestManager; |
32 class BrowserPluginHostFactory; | 36 class BrowserPluginHostFactory; |
33 class WebContentsImpl; | 37 class WebContentsImpl; |
34 | 38 |
35 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver { | 39 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver { |
36 public: | 40 public: |
37 virtual ~BrowserPluginEmbedder(); | 41 virtual ~BrowserPluginEmbedder(); |
38 | 42 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 GetRenderViewHostCallbackMap pending_get_render_view_callbacks_; | 89 GetRenderViewHostCallbackMap pending_get_render_view_callbacks_; |
86 // Next request id for BrowserPluginMsg_PluginAtPositionRequest query. | 90 // Next request id for BrowserPluginMsg_PluginAtPositionRequest query. |
87 int next_get_render_view_request_id_; | 91 int next_get_render_view_request_id_; |
88 | 92 |
89 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 93 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
90 }; | 94 }; |
91 | 95 |
92 } // namespace content | 96 } // namespace content |
93 | 97 |
94 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 98 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |