| 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_WEB_CONTENTS_TESTER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
| 6 #define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ | 6 #define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/public/browser/site_instance.h" | 10 #include "content/public/browser/site_instance.h" |
| 11 #include "ui/base/page_transition_types.h" | 11 #include "ui/base/page_transition_types.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class BrowserContext; | 17 class BrowserContext; |
| 18 class NavigationData; | 18 class NavigationData; |
| 19 class NavigationHandle; | 19 class NavigationHandle; |
| 20 class RenderFrameHost; | 20 class RenderFrameHost; |
| 21 class RenderViewHost; | |
| 22 class WebContents; | 21 class WebContents; |
| 23 struct Referrer; | 22 struct Referrer; |
| 24 | 23 |
| 25 // This interface allows embedders of content/ to write tests that depend on a | 24 // This interface allows embedders of content/ to write tests that depend on a |
| 26 // test version of WebContents. This interface can be retrieved from any | 25 // test version of WebContents. This interface can be retrieved from any |
| 27 // WebContents that was retrieved via a call to | 26 // WebContents that was retrieved via a call to |
| 28 // RenderViewHostTestHarness::GetWebContents() (directly or indirectly) or | 27 // RenderViewHostTestHarness::GetWebContents() (directly or indirectly) or |
| 29 // constructed explicitly via CreateTestWebContents. | 28 // constructed explicitly via CreateTestWebContents. |
| 30 // | 29 // |
| 31 // Tests within content/ can directly static_cast WebContents objects retrieved | 30 // Tests within content/ can directly static_cast WebContents objects retrieved |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 std::unique_ptr<NavigationData> navigation_data) = 0; | 122 std::unique_ptr<NavigationData> navigation_data) = 0; |
| 124 | 123 |
| 125 // Returns headers that were passed in the previous SaveFrameWithHeaders(...) | 124 // Returns headers that were passed in the previous SaveFrameWithHeaders(...) |
| 126 // call. | 125 // call. |
| 127 virtual const std::string& GetSaveFrameHeaders() = 0; | 126 virtual const std::string& GetSaveFrameHeaders() = 0; |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace content | 129 } // namespace content |
| 131 | 130 |
| 132 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ | 131 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
| OLD | NEW |