Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: content/renderer/browser_plugin/old/guest_to_embedder_channel.h

Issue 10829219: Browser Plugin: Move to old namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_OLD_GUEST_TO_EMBEDDER_CHANNEL_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_OLD_GUEST_TO_EMBEDDER_CHANNEL_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_OLD_GUEST_TO_EMBEDDER_CHANNEL_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_OLD_GUEST_TO_EMBEDDER_CHANNEL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 9 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
10 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" 10 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h"
11 #include "content/renderer/render_view_impl.h" 11 #include "content/renderer/render_view_impl.h"
12 #include "ipc/ipc_channel_handle.h" 12 #include "ipc/ipc_channel_handle.h"
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/shared_impl/ppb_view_shared.h" 15 #include "ppapi/shared_impl/ppb_view_shared.h"
16 #include "ppapi/proxy/plugin_dispatcher.h" 16 #include "ppapi/proxy/plugin_dispatcher.h"
17 #include "ppapi/proxy/serialized_var.h" 17 #include "ppapi/proxy/serialized_var.h"
18 #include "ppapi/shared_impl/host_resource.h" 18 #include "ppapi/shared_impl/host_resource.h"
19 #include "ppapi/shared_impl/ppapi_preferences.h" 19 #include "ppapi/shared_impl/ppapi_preferences.h"
20 #include "ppapi/shared_impl/ppb_input_event_shared.h" 20 #include "ppapi/shared_impl/ppb_input_event_shared.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
23 23
24 namespace content { 24 namespace content {
25 namespace old {
25 26
26 class BrowserPluginChannelManager; 27 class BrowserPluginChannelManager;
27 28
28 // GuestToEmbedderChannel is a Dispatcher that sends and receives ppapi messages 29 // GuestToEmbedderChannel is a Dispatcher that sends and receives ppapi messages
29 // from the browser plugin embedder. It is reference counted because it is held 30 // from the browser plugin embedder. It is reference counted because it is held
30 // by a RenderViewImpl which (indirectly) owns a PpapiCommandBufferProxy through 31 // by a RenderViewImpl which (indirectly) owns a PpapiCommandBufferProxy through
31 // a WebGraphicsContext3DCommandBufferImpl which is owned by WebKit. Since the 32 // a WebGraphicsContext3DCommandBufferImpl which is owned by WebKit. Since the
32 // lifetime of this context is less than the lifetime of the RenderViewImpl, we 33 // lifetime of this context is less than the lifetime of the RenderViewImpl, we
33 // keep the GuestToEmbedderChannel alive as long as a RenderViewImpl has access 34 // keep the GuestToEmbedderChannel alive as long as a RenderViewImpl has access
34 // to it. If the context is lost, then the PpapiCommandBufferProxy is destroyed 35 // to it. If the context is lost, then the PpapiCommandBufferProxy is destroyed
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 std::string embedder_channel_name_; 126 std::string embedder_channel_name_;
126 IPC::ChannelHandle embedder_channel_handle_; 127 IPC::ChannelHandle embedder_channel_handle_;
127 PepperProxyChannelDelegateImpl delegate_; 128 PepperProxyChannelDelegateImpl delegate_;
128 129
129 InstanceMap render_view_instances_; 130 InstanceMap render_view_instances_;
130 RoutingIDToInstanceMap routing_id_instance_map_; 131 RoutingIDToInstanceMap routing_id_instance_map_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(GuestToEmbedderChannel); 133 DISALLOW_COPY_AND_ASSIGN(GuestToEmbedderChannel);
133 }; 134 };
134 135
136 } // namespace old
135 } // namespace content 137 } // namespace content
136 138
137 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_OLD_GUEST_TO_EMBEDDER_CHANNEL_H_ 139 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_OLD_GUEST_TO_EMBEDDER_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698