| 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_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/browser/web_contents/web_contents_impl.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
| 10 #include "content/public/common/page_transition_types.h" | 10 #include "content/public/common/page_transition_types.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual void ProceedWithCrossSiteNavigation() OVERRIDE; | 34 virtual void ProceedWithCrossSiteNavigation() OVERRIDE; |
| 35 virtual void TestDidNavigate(RenderViewHost* render_view_host, | 35 virtual void TestDidNavigate(RenderViewHost* render_view_host, |
| 36 int page_id, | 36 int page_id, |
| 37 const GURL& url, | 37 const GURL& url, |
| 38 PageTransition transition) OVERRIDE; | 38 PageTransition transition) OVERRIDE; |
| 39 virtual void TestDidNavigateWithReferrer(RenderViewHost* render_view_host, | 39 virtual void TestDidNavigateWithReferrer(RenderViewHost* render_view_host, |
| 40 int page_id, | 40 int page_id, |
| 41 const GURL& url, | 41 const GURL& url, |
| 42 const Referrer& referrer, | 42 const Referrer& referrer, |
| 43 PageTransition transition) OVERRIDE; | 43 PageTransition transition) OVERRIDE; |
| 44 virtual WebPreferences TestGetWebkitPrefs() OVERRIDE; | 44 virtual webkit_glue::WebPreferences TestGetWebkitPrefs() OVERRIDE; |
| 45 | 45 |
| 46 TestRenderViewHost* pending_test_rvh() const; | 46 TestRenderViewHost* pending_test_rvh() const; |
| 47 | 47 |
| 48 // State accessor. | 48 // State accessor. |
| 49 bool cross_navigation_pending() { | 49 bool cross_navigation_pending() { |
| 50 return render_manager_.cross_navigation_pending_; | 50 return render_manager_.cross_navigation_pending_; |
| 51 } | 51 } |
| 52 | 52 |
| 53 // Overrides WebContentsImpl::ShouldTransitionCrossSite so that we can test | 53 // Overrides WebContentsImpl::ShouldTransitionCrossSite so that we can test |
| 54 // both alternatives without using command-line switches. | 54 // both alternatives without using command-line switches. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool expect_set_history_length_and_prune_; | 95 bool expect_set_history_length_and_prune_; |
| 96 scoped_refptr<const SiteInstanceImpl> | 96 scoped_refptr<const SiteInstanceImpl> |
| 97 expect_set_history_length_and_prune_site_instance_; | 97 expect_set_history_length_and_prune_site_instance_; |
| 98 int expect_set_history_length_and_prune_history_length_; | 98 int expect_set_history_length_and_prune_history_length_; |
| 99 int32 expect_set_history_length_and_prune_min_page_id_; | 99 int32 expect_set_history_length_and_prune_min_page_id_; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace content | 102 } // namespace content |
| 103 | 103 |
| 104 #endif // CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ | 104 #endif // CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ |
| OLD | NEW |