| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_TEST_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "content/browser/frame_host/render_frame_host_impl.h" | 11 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 12 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
| 13 #include "content/public/test/mock_render_process_host.h" |
| 13 #include "content/public/test/test_renderer_host.h" | 14 #include "content/public/test/test_renderer_host.h" |
| 14 #include "content/test/test_render_view_host.h" | 15 #include "content/test/test_render_view_host.h" |
| 15 #include "ui/base/page_transition_types.h" | 16 #include "ui/base/page_transition_types.h" |
| 16 | 17 |
| 17 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 18 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| 20 | 21 |
| 21 class TestRenderFrameHostCreationObserver : public WebContentsObserver { | 22 class TestRenderFrameHostCreationObserver : public WebContentsObserver { |
| 22 public: | 23 public: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 TestRenderFrameHost(SiteInstance* site_instance, | 39 TestRenderFrameHost(SiteInstance* site_instance, |
| 39 RenderViewHostImpl* render_view_host, | 40 RenderViewHostImpl* render_view_host, |
| 40 RenderFrameHostDelegate* delegate, | 41 RenderFrameHostDelegate* delegate, |
| 41 RenderWidgetHostDelegate* rwh_delegate, | 42 RenderWidgetHostDelegate* rwh_delegate, |
| 42 FrameTree* frame_tree, | 43 FrameTree* frame_tree, |
| 43 FrameTreeNode* frame_tree_node, | 44 FrameTreeNode* frame_tree_node, |
| 44 int routing_id, | 45 int routing_id, |
| 45 int flags); | 46 int flags); |
| 46 ~TestRenderFrameHost() override; | 47 ~TestRenderFrameHost() override; |
| 47 | 48 |
| 48 // RenderFrameHostImpl overrides (same values, but in Test* types) | 49 // RenderFrameHostImpl overrides (same values, but in Test*/Mock* types) |
| 49 TestRenderViewHost* GetRenderViewHost() override; | 50 TestRenderViewHost* GetRenderViewHost() override; |
| 51 MockRenderProcessHost* GetProcess() override; |
| 50 | 52 |
| 51 // RenderFrameHostTester implementation. | 53 // RenderFrameHostTester implementation. |
| 52 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; | 54 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; |
| 53 void SendNavigate(int page_id, const GURL& url) override; | 55 void SendNavigate(int page_id, const GURL& url) override; |
| 54 void SendFailedNavigate(int page_id, const GURL& url) override; | 56 void SendFailedNavigate(int page_id, const GURL& url) override; |
| 55 void SendNavigateWithTransition(int page_id, | 57 void SendNavigateWithTransition(int page_id, |
| 56 const GURL& url, | 58 const GURL& url, |
| 57 ui::PageTransition transition) override; | 59 ui::PageTransition transition) override; |
| 58 void SetContentsMimeType(const std::string& mime_type) override; | 60 void SetContentsMimeType(const std::string& mime_type) override; |
| 59 void SendBeforeUnloadACK(bool proceed) override; | 61 void SendBeforeUnloadACK(bool proceed) override; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 123 |
| 122 // See set_simulate_history_list_was_cleared() above. | 124 // See set_simulate_history_list_was_cleared() above. |
| 123 bool simulate_history_list_was_cleared_; | 125 bool simulate_history_list_was_cleared_; |
| 124 | 126 |
| 125 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 127 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace content | 130 } // namespace content |
| 129 | 131 |
| 130 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 132 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |