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/point.h" | 8 #include "ui/gfx/point.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool MockRendererPpapiHost::IsRunningInProcess() const { return false; } | 80 bool MockRendererPpapiHost::IsRunningInProcess() const { return false; } |
81 | 81 |
| 82 std::string MockRendererPpapiHost::GetPluginName() const { |
| 83 return std::string(); |
| 84 } |
| 85 |
| 86 void MockRendererPpapiHost::SetToExternalPluginHost() { |
| 87 NOTIMPLEMENTED(); |
| 88 } |
| 89 |
82 void MockRendererPpapiHost::CreateBrowserResourceHosts( | 90 void MockRendererPpapiHost::CreateBrowserResourceHosts( |
83 PP_Instance instance, | 91 PP_Instance instance, |
84 const std::vector<IPC::Message>& nested_msgs, | 92 const std::vector<IPC::Message>& nested_msgs, |
85 const base::Callback<void(const std::vector<int>&)>& callback) const { | 93 const base::Callback<void(const std::vector<int>&)>& callback) const { |
86 callback.Run(std::vector<int>(nested_msgs.size(), 0)); | 94 callback.Run(std::vector<int>(nested_msgs.size(), 0)); |
87 return; | 95 return; |
88 } | 96 } |
89 | 97 |
90 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const { | 98 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const { |
91 NOTIMPLEMENTED(); | 99 NOTIMPLEMENTED(); |
92 return GURL(); | 100 return GURL(); |
93 } | 101 } |
94 | 102 |
95 } // namespace content | 103 } // namespace content |
OLD | NEW |