| 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_LAYOUTTEST_SUPPORT_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 | 9 |
| 10 namespace WebTestRunner { | 10 namespace WebTestRunner { |
| 11 class WebTestProxyBase; | 11 class WebTestProxyBase; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class RenderView; |
| 17 |
| 16 // Enable injecting of a WebTestProxy between WebViews and RenderViews. | 18 // Enable injecting of a WebTestProxy between WebViews and RenderViews. |
| 17 // |callback| is invoked with a pointer to WebTestProxyBase for each created | 19 // |callback| is invoked with a pointer to WebTestProxyBase for each created |
| 18 // WebTestProxy. | 20 // WebTestProxy. |
| 19 void EnableWebTestProxyCreation( | 21 void EnableWebTestProxyCreation(const base::Callback< |
| 20 const base::Callback<void(WebTestRunner::WebTestProxyBase*)>& callback); | 22 void(RenderView*, WebTestRunner::WebTestProxyBase*)>& callback); |
| 21 | 23 |
| 22 } // namespace content | 24 } // namespace content |
| 23 | 25 |
| 24 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 26 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |