| 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/mock_renderer_ppapi_host.h" | 5 #include "content/renderer/pepper/mock_renderer_ppapi_host.h" |
| 6 | 6 |
| 7 #include "content/renderer/pepper/fake_pepper_plugin_instance.h" | 7 #include "content/renderer/pepper/fake_pepper_plugin_instance.h" |
| 8 #include "ui/gfx/geometry/point.h" | 8 #include "ui/gfx/geometry/point.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return gfx::Point(); | 70 return gfx::Point(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 IPC::PlatformFileForTransit MockRendererPpapiHost::ShareHandleWithRemote( | 73 IPC::PlatformFileForTransit MockRendererPpapiHost::ShareHandleWithRemote( |
| 74 base::PlatformFile handle, | 74 base::PlatformFile handle, |
| 75 bool should_close_source) { | 75 bool should_close_source) { |
| 76 NOTIMPLEMENTED(); | 76 NOTIMPLEMENTED(); |
| 77 return IPC::InvalidPlatformFileForTransit(); | 77 return IPC::InvalidPlatformFileForTransit(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 base::SharedMemoryHandle |
| 81 MockRendererPpapiHost::ShareSharedMemoryHandleWithRemote( |
| 82 const base::SharedMemoryHandle& handle) { |
| 83 NOTIMPLEMENTED(); |
| 84 return base::SharedMemory::NULLHandle(); |
| 85 } |
| 86 |
| 80 bool MockRendererPpapiHost::IsRunningInProcess() const { return false; } | 87 bool MockRendererPpapiHost::IsRunningInProcess() const { return false; } |
| 81 | 88 |
| 82 std::string MockRendererPpapiHost::GetPluginName() const { | 89 std::string MockRendererPpapiHost::GetPluginName() const { |
| 83 return std::string(); | 90 return std::string(); |
| 84 } | 91 } |
| 85 | 92 |
| 86 void MockRendererPpapiHost::SetToExternalPluginHost() { | 93 void MockRendererPpapiHost::SetToExternalPluginHost() { |
| 87 NOTIMPLEMENTED(); | 94 NOTIMPLEMENTED(); |
| 88 } | 95 } |
| 89 | 96 |
| 90 void MockRendererPpapiHost::CreateBrowserResourceHosts( | 97 void MockRendererPpapiHost::CreateBrowserResourceHosts( |
| 91 PP_Instance instance, | 98 PP_Instance instance, |
| 92 const std::vector<IPC::Message>& nested_msgs, | 99 const std::vector<IPC::Message>& nested_msgs, |
| 93 const base::Callback<void(const std::vector<int>&)>& callback) const { | 100 const base::Callback<void(const std::vector<int>&)>& callback) const { |
| 94 callback.Run(std::vector<int>(nested_msgs.size(), 0)); | 101 callback.Run(std::vector<int>(nested_msgs.size(), 0)); |
| 95 return; | 102 return; |
| 96 } | 103 } |
| 97 | 104 |
| 98 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const { | 105 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const { |
| 99 NOTIMPLEMENTED(); | 106 NOTIMPLEMENTED(); |
| 100 return GURL(); | 107 return GURL(); |
| 101 } | 108 } |
| 102 | 109 |
| 103 } // namespace content | 110 } // namespace content |
| OLD | NEW |