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 "ui/gfx/point.h" | 7 #include "ui/gfx/point.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 return IPC::InvalidPlatformFileForTransit(); | 73 return IPC::InvalidPlatformFileForTransit(); |
74 } | 74 } |
75 | 75 |
76 bool MockRendererPpapiHost::IsRunningInProcess() const { | 76 bool MockRendererPpapiHost::IsRunningInProcess() const { |
77 NOTIMPLEMENTED(); | 77 NOTIMPLEMENTED(); |
78 return false; | 78 return false; |
79 } | 79 } |
80 | 80 |
81 void MockRendererPpapiHost::CreateBrowserResourceHosts( | 81 void MockRendererPpapiHost::CreateBrowserResourceHosts( |
82 PP_Instance instance, | 82 PP_Instance instance, |
83 const std::vector<IPC::Message>& nested_msg, | 83 const std::vector<IPC::Message>& nested_msgs, |
84 const base::Callback<void(const std::vector<int>&)>& callback) const { | 84 const base::Callback<void(const std::vector<int>&)>& callback) const { |
85 NOTIMPLEMENTED(); | 85 callback.Run(std::vector<int>(nested_msgs.size(), 0)); |
86 callback.Run(std::vector<int>()); | |
87 return; | 86 return; |
88 } | 87 } |
89 | 88 |
90 } // namespace content | 89 } // namespace content |
OLD | NEW |