| 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 <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "content/public/renderer/renderer_ppapi_host.h" | 11 #include "content/public/renderer/renderer_ppapi_host.h" |
| 11 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" | 12 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" |
| 12 #include "ppapi/host/ppapi_host.h" | 13 #include "ppapi/host/ppapi_host.h" |
| 13 #include "ppapi/proxy/resource_message_test_sink.h" | 14 #include "ppapi/proxy/resource_message_test_sink.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 class FakePepperPluginInstance; | 17 class FakePepperPluginInstance; |
| 17 class PluginModule; | 18 class PluginModule; |
| 18 | 19 |
| 19 // A mock RendererPpapiHost for testing resource hosts. Messages sent by | 20 // A mock RendererPpapiHost for testing resource hosts. Messages sent by |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 ppapi::proxy::ResourceMessageTestSink sink_; | 64 ppapi::proxy::ResourceMessageTestSink sink_; |
| 64 ppapi::host::PpapiHost ppapi_host_; | 65 ppapi::host::PpapiHost ppapi_host_; |
| 65 | 66 |
| 66 RenderView* render_view_; | 67 RenderView* render_view_; |
| 67 PP_Instance pp_instance_; | 68 PP_Instance pp_instance_; |
| 68 | 69 |
| 69 bool has_user_gesture_; | 70 bool has_user_gesture_; |
| 70 | 71 |
| 71 scoped_ptr<FakePepperPluginInstance> plugin_instance_; | 72 std::unique_ptr<FakePepperPluginInstance> plugin_instance_; |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); | 74 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace content | 77 } // namespace content |
| 77 | 78 |
| 78 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 79 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
| OLD | NEW |