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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 9959037: Put the Pepper stuff in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "webkit/plugins/ppapi/ppb_flash_impl.h" 84 #include "webkit/plugins/ppapi/ppb_flash_impl.h"
85 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" 85 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h"
86 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" 86 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h"
87 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" 87 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h"
88 #include "webkit/plugins/ppapi/resource_helper.h" 88 #include "webkit/plugins/ppapi/resource_helper.h"
89 #include "webkit/plugins/webplugininfo.h" 89 #include "webkit/plugins/webplugininfo.h"
90 90
91 using WebKit::WebView; 91 using WebKit::WebView;
92 using WebKit::WebFrame; 92 using WebKit::WebFrame;
93 93
94 namespace content {
95
94 namespace { 96 namespace {
95 97
96 class HostDispatcherWrapper 98 class HostDispatcherWrapper
97 : public webkit::ppapi::PluginDelegate::OutOfProcessProxy { 99 : public webkit::ppapi::PluginDelegate::OutOfProcessProxy {
98 public: 100 public:
99 HostDispatcherWrapper() {} 101 HostDispatcherWrapper() {}
100 virtual ~HostDispatcherWrapper() {} 102 virtual ~HostDispatcherWrapper() {}
101 103
102 bool Init(base::ProcessHandle plugin_process_handle, 104 bool Init(base::ProcessHandle plugin_process_handle,
103 const IPC::ChannelHandle& channel_handle, 105 const IPC::ChannelHandle& channel_handle,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return true; 183 return true;
182 } 184 }
183 185
184 private: 186 private:
185 webkit::ppapi::PluginInstance* plugin_; 187 webkit::ppapi::PluginInstance* plugin_;
186 }; 188 };
187 189
188 } // namespace 190 } // namespace
189 191
190 PepperPluginDelegateImpl::PepperPluginDelegateImpl(RenderViewImpl* render_view) 192 PepperPluginDelegateImpl::PepperPluginDelegateImpl(RenderViewImpl* render_view)
191 : content::RenderViewObserver(render_view), 193 : content::RenderViewObserver(render_view),
jam 2012/03/30 21:50:03 remove content:: for this whole file
192 render_view_(render_view), 194 render_view_(render_view),
193 has_saved_context_menu_action_(false), 195 has_saved_context_menu_action_(false),
194 saved_context_menu_action_(0), 196 saved_context_menu_action_(0),
195 focused_plugin_(NULL), 197 focused_plugin_(NULL),
196 last_mouse_event_target_(NULL), 198 last_mouse_event_target_(NULL),
197 device_enumeration_event_handler_( 199 device_enumeration_event_handler_(
198 new PepperDeviceEnumerationEventHandler()) { 200 new PepperDeviceEnumerationEventHandler()) {
199 } 201 }
200 202
201 PepperPluginDelegateImpl::~PepperPluginDelegateImpl() { 203 PepperPluginDelegateImpl::~PepperPluginDelegateImpl() {
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); 1600 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target);
1599 delete target; 1601 delete target;
1600 mouse_lock_instances_.erase(it); 1602 mouse_lock_instances_.erase(it);
1601 } 1603 }
1602 } 1604 }
1603 1605
1604 webkit_glue::ClipboardClient* 1606 webkit_glue::ClipboardClient*
1605 PepperPluginDelegateImpl::CreateClipboardClient() const { 1607 PepperPluginDelegateImpl::CreateClipboardClient() const {
1606 return new RendererClipboardClient; 1608 return new RendererClipboardClient;
1607 } 1609 }
1610
1611 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698