| 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 #ifndef CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/renderer/renderer_ppapi_host.h" | 10 #include "content/public/renderer/renderer_ppapi_host.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual base::ProcessId GetPluginPID() const OVERRIDE; | 45 virtual base::ProcessId GetPluginPID() const OVERRIDE; |
| 46 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; | 46 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; |
| 47 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; | 47 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; |
| 48 virtual gfx::Point PluginPointToRenderFrame(PP_Instance instance, | 48 virtual gfx::Point PluginPointToRenderFrame(PP_Instance instance, |
| 49 const gfx::Point& pt) const | 49 const gfx::Point& pt) const |
| 50 OVERRIDE; | 50 OVERRIDE; |
| 51 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 51 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 52 base::PlatformFile handle, | 52 base::PlatformFile handle, |
| 53 bool should_close_source) OVERRIDE; | 53 bool should_close_source) OVERRIDE; |
| 54 virtual bool IsRunningInProcess() const OVERRIDE; | 54 virtual bool IsRunningInProcess() const OVERRIDE; |
| 55 virtual std::string GetPluginName() const OVERRIDE; |
| 56 virtual void SetToExternalPluginHost() OVERRIDE; |
| 55 virtual void CreateBrowserResourceHosts( | 57 virtual void CreateBrowserResourceHosts( |
| 56 PP_Instance instance, | 58 PP_Instance instance, |
| 57 const std::vector<IPC::Message>& nested_msgs, | 59 const std::vector<IPC::Message>& nested_msgs, |
| 58 const base::Callback<void(const std::vector<int>&)>& callback) const | 60 const base::Callback<void(const std::vector<int>&)>& callback) const |
| 59 OVERRIDE; | 61 OVERRIDE; |
| 60 virtual GURL GetDocumentURL(PP_Instance instance) const OVERRIDE; | 62 virtual GURL GetDocumentURL(PP_Instance instance) const OVERRIDE; |
| 61 | 63 |
| 62 private: | 64 private: |
| 63 ppapi::proxy::ResourceMessageTestSink sink_; | 65 ppapi::proxy::ResourceMessageTestSink sink_; |
| 64 ppapi::host::PpapiHost ppapi_host_; | 66 ppapi::host::PpapiHost ppapi_host_; |
| 65 | 67 |
| 66 RenderView* render_view_; | 68 RenderView* render_view_; |
| 67 PP_Instance pp_instance_; | 69 PP_Instance pp_instance_; |
| 68 | 70 |
| 69 bool has_user_gesture_; | 71 bool has_user_gesture_; |
| 70 | 72 |
| 71 scoped_ptr<FakePepperPluginInstance> plugin_instance_; | 73 scoped_ptr<FakePepperPluginInstance> plugin_instance_; |
| 72 | 74 |
| 73 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); | 75 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 } // namespace content | 78 } // namespace content |
| 77 | 79 |
| 78 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 80 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
| OLD | NEW |