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> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const std::vector<IPC::Message>& nested_msgs, | 58 const std::vector<IPC::Message>& nested_msgs, |
59 const base::Callback<void(const std::vector<int>&)>& callback) | 59 const base::Callback<void(const std::vector<int>&)>& callback) |
60 const override; | 60 const override; |
61 GURL GetDocumentURL(PP_Instance instance) const override; | 61 GURL GetDocumentURL(PP_Instance instance) const override; |
62 | 62 |
63 private: | 63 private: |
64 ppapi::proxy::ResourceMessageTestSink sink_; | 64 ppapi::proxy::ResourceMessageTestSink sink_; |
65 ppapi::host::PpapiHost ppapi_host_; | 65 ppapi::host::PpapiHost ppapi_host_; |
66 | 66 |
67 RenderView* render_view_; | 67 RenderView* render_view_; |
| 68 RenderFrame* render_frame_; |
68 PP_Instance pp_instance_; | 69 PP_Instance pp_instance_; |
69 | 70 |
70 bool has_user_gesture_; | 71 bool has_user_gesture_; |
71 | 72 |
72 std::unique_ptr<FakePepperPluginInstance> plugin_instance_; | 73 std::unique_ptr<FakePepperPluginInstance> plugin_instance_; |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); | 75 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace content | 78 } // namespace content |
78 | 79 |
79 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 80 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
OLD | NEW |