| 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_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
| 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 struct ViewHostMsg_CreateWindow_Reply; | 24 struct ViewHostMsg_CreateWindow_Reply; |
| 25 | 25 |
| 26 namespace IPC { | 26 namespace IPC { |
| 27 class MessageFilter; | 27 class MessageFilter; |
| 28 class MessageReplyDeserializer; | 28 class MessageReplyDeserializer; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 enum class WebSandboxFlags; | 32 enum class WebSandboxFlags; |
| 33 enum class WebTreeScopeType; | 33 enum class WebTreeScopeType; |
| 34 struct WebFrameOwnerProperties; | |
| 35 } | 34 } |
| 36 | 35 |
| 37 namespace content { | 36 namespace content { |
| 38 | 37 |
| 39 // This class is a very simple mock of RenderThread. It simulates an IPC channel | 38 // This class is a very simple mock of RenderThread. It simulates an IPC channel |
| 40 // which supports only three messages: | 39 // which supports only three messages: |
| 41 // ViewHostMsg_CreateWidget : sync message sent by the Widget. | 40 // ViewHostMsg_CreateWidget : sync message sent by the Widget. |
| 42 // ViewHostMsg_CreateWindow : sync message sent by the Widget. | 41 // ViewHostMsg_CreateWindow : sync message sent by the Widget. |
| 43 // ViewMsg_Close : async, send to the Widget. | 42 // ViewMsg_Close : async, send to the Widget. |
| 44 class MockRenderThread : public RenderThread { | 43 class MockRenderThread : public RenderThread { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 cc::TestSharedBitmapManager shared_bitmap_manager_; | 162 cc::TestSharedBitmapManager shared_bitmap_manager_; |
| 164 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; | 163 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; |
| 165 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; | 164 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; |
| 166 shell::mojom::InterfaceProviderRequest | 165 shell::mojom::InterfaceProviderRequest |
| 167 pending_remote_interface_provider_request_; | 166 pending_remote_interface_provider_request_; |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace content | 169 } // namespace content |
| 171 | 170 |
| 172 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 171 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
| OLD | NEW |