| 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. Any | 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any |
| 10 // messages about the guest render process that the embedder might be interested | 10 // messages about the guest render process that the embedder might be interested |
| 11 // in receiving should be listened for here. | 11 // in receiving should be listened for here. |
| 12 // | 12 // |
| 13 // BrowserPluginGuest is a WebContentsObserver for the guest WebContents. | 13 // BrowserPluginGuest is a WebContentsObserver for the guest WebContents. |
| 14 // BrowserPluginGuest operates under the assumption that the guest will be | 14 // BrowserPluginGuest operates under the assumption that the guest will be |
| 15 // accessible through only one RenderViewHost for the lifetime of | 15 // accessible through only one RenderViewHost for the lifetime of |
| 16 // the guest WebContents. Thus, cross-process navigation is not supported. | 16 // the guest WebContents. Thus, cross-process navigation is not supported. |
| 17 | 17 |
| 18 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 18 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| 19 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 19 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| 20 | 20 |
| 21 #include <map> | 21 #include <map> |
| 22 #include <queue> | 22 #include <queue> |
| 23 | 23 |
| 24 #include "base/compiler_specific.h" | 24 #include "base/compiler_specific.h" |
| 25 #include "base/memory/linked_ptr.h" | 25 #include "base/memory/linked_ptr.h" |
| 26 #include "base/memory/weak_ptr.h" | 26 #include "base/memory/weak_ptr.h" |
| 27 #include "base/values.h" | 27 #include "base/values.h" |
| 28 #include "cc/surfaces/surface_id.h" |
| 28 #include "content/common/edit_command.h" | 29 #include "content/common/edit_command.h" |
| 29 #include "content/common/input/input_event_ack_state.h" | 30 #include "content/common/input/input_event_ack_state.h" |
| 30 #include "content/public/browser/browser_plugin_guest_delegate.h" | 31 #include "content/public/browser/browser_plugin_guest_delegate.h" |
| 31 #include "content/public/browser/guest_host.h" | 32 #include "content/public/browser/guest_host.h" |
| 32 #include "content/public/browser/readback_types.h" | 33 #include "content/public/browser/readback_types.h" |
| 33 #include "content/public/browser/web_contents_observer.h" | 34 #include "content/public/browser/web_contents_observer.h" |
| 34 #include "third_party/WebKit/public/platform/WebFocusType.h" | 35 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 35 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 36 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 36 #include "third_party/WebKit/public/web/WebDragOperation.h" | 37 #include "third_party/WebKit/public/web/WebDragOperation.h" |
| 37 #include "third_party/WebKit/public/web/WebDragStatus.h" | 38 #include "third_party/WebKit/public/web/WebDragStatus.h" |
| 38 #include "third_party/WebKit/public/web/WebInputEvent.h" | 39 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 39 #include "ui/base/ime/text_input_mode.h" | 40 #include "ui/base/ime/text_input_mode.h" |
| 40 #include "ui/base/ime/text_input_type.h" | 41 #include "ui/base/ime/text_input_type.h" |
| 41 #include "ui/gfx/geometry/rect.h" | 42 #include "ui/gfx/geometry/rect.h" |
| 42 | 43 |
| 43 struct BrowserPluginHostMsg_Attach_Params; | 44 struct BrowserPluginHostMsg_Attach_Params; |
| 44 struct FrameHostMsg_CompositorFrameSwappedACK_Params; | 45 struct FrameHostMsg_CompositorFrameSwappedACK_Params; |
| 45 struct FrameHostMsg_ReclaimCompositorResources_Params; | 46 struct FrameHostMsg_ReclaimCompositorResources_Params; |
| 46 struct FrameMsg_CompositorFrameSwapped_Params; | 47 struct FrameMsg_CompositorFrameSwapped_Params; |
| 47 struct ViewHostMsg_TextInputState_Params; | 48 struct ViewHostMsg_TextInputState_Params; |
| 48 | 49 |
| 49 #if defined(OS_MACOSX) | 50 #if defined(OS_MACOSX) |
| 50 struct FrameHostMsg_ShowPopup_Params; | 51 struct FrameHostMsg_ShowPopup_Params; |
| 51 #endif | 52 #endif |
| 52 | 53 |
| 53 namespace cc { | 54 namespace cc { |
| 54 class CompositorFrame; | 55 class CompositorFrame; |
| 55 struct SurfaceId; | |
| 56 struct SurfaceSequence; | 56 struct SurfaceSequence; |
| 57 } // namespace cc | 57 } // namespace cc |
| 58 | 58 |
| 59 namespace gfx { | 59 namespace gfx { |
| 60 class Range; | 60 class Range; |
| 61 } // namespace gfx | 61 } // namespace gfx |
| 62 | 62 |
| 63 namespace content { | 63 namespace content { |
| 64 | 64 |
| 65 class BrowserPluginGuestManager; | 65 class BrowserPluginGuestManager; |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 470 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 471 // permission. | 471 // permission. |
| 472 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 472 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 473 | 473 |
| 474 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 474 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 475 }; | 475 }; |
| 476 | 476 |
| 477 } // namespace content | 477 } // namespace content |
| 478 | 478 |
| 479 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 479 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |