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/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
19 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
20 #include "third_party/WebKit/public/web/WebDragOperation.h" | 21 #include "third_party/WebKit/public/web/WebDragOperation.h" |
21 | 22 |
22 struct BrowserPluginHostMsg_Attach_Params; | 23 struct BrowserPluginHostMsg_Attach_Params; |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 | 26 |
26 class BrowserPluginGuest; | 27 class BrowserPluginGuest; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 bool guest_drag_ending_; | 129 bool guest_drag_ending_; |
129 | 130 |
130 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; | 131 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 133 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace content | 136 } // namespace content |
136 | 137 |
137 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 138 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |