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 #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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 class HostDispatcherWrapper | 98 class HostDispatcherWrapper |
99 : public webkit::ppapi::PluginDelegate::OutOfProcessProxy { | 99 : public webkit::ppapi::PluginDelegate::OutOfProcessProxy { |
100 public: | 100 public: |
101 HostDispatcherWrapper() {} | 101 HostDispatcherWrapper() {} |
102 virtual ~HostDispatcherWrapper() {} | 102 virtual ~HostDispatcherWrapper() {} |
103 | 103 |
104 bool Init(base::ProcessHandle plugin_process_handle, | 104 bool Init(base::ProcessHandle plugin_process_handle, |
105 const IPC::ChannelHandle& channel_handle, | 105 const IPC::ChannelHandle& channel_handle, |
106 PP_Module pp_module, | 106 PP_Module pp_module, |
107 ppapi::proxy::Dispatcher::GetInterfaceFunc local_get_interface, | 107 PP_GetInterface_Func local_get_interface, |
108 const ppapi::Preferences& preferences) { | 108 const ppapi::Preferences& preferences) { |
109 if (channel_handle.name.empty()) | 109 if (channel_handle.name.empty()) |
110 return false; | 110 return false; |
111 | 111 |
112 #if defined(OS_POSIX) | 112 #if defined(OS_POSIX) |
113 DCHECK_NE(-1, channel_handle.socket.fd); | 113 DCHECK_NE(-1, channel_handle.socket.fd); |
114 if (channel_handle.socket.fd == -1) | 114 if (channel_handle.socket.fd == -1) |
115 return false; | 115 return false; |
116 #endif | 116 #endif |
117 | 117 |
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 mouse_lock_instances_.erase(it); | 1614 mouse_lock_instances_.erase(it); |
1615 } | 1615 } |
1616 } | 1616 } |
1617 | 1617 |
1618 webkit_glue::ClipboardClient* | 1618 webkit_glue::ClipboardClient* |
1619 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1619 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1620 return new RendererClipboardClient; | 1620 return new RendererClipboardClient; |
1621 } | 1621 } |
1622 | 1622 |
1623 } // namespace content | 1623 } // namespace content |
OLD | NEW |