| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "third_party/WebKit/public/web/WebFrameClient.h" | 12 #include "third_party/WebKit/public/web/WebFrameClient.h" |
| 13 | 13 |
| 14 namespace test_runner { | 14 namespace test_runner { |
| 15 | 15 |
| 16 class AccessibilityController; | |
| 17 class TestRunner; | 16 class TestRunner; |
| 18 class WebFrameTestProxyBase; | 17 class WebFrameTestProxyBase; |
| 19 class WebTestDelegate; | 18 class WebTestDelegate; |
| 20 class WebTestProxyBase; | 19 class WebTestProxyBase; |
| 21 | 20 |
| 22 // WebFrameTestClient implements WebFrameClient interface, providing behavior | 21 // WebFrameTestClient implements WebFrameClient interface, providing behavior |
| 23 // expected by tests. WebFrameTestClient ends up used by WebFrameTestProxy | 22 // expected by tests. WebFrameTestClient ends up used by WebFrameTestProxy |
| 24 // which coordinates forwarding WebFrameClient calls either to | 23 // which coordinates forwarding WebFrameClient calls either to |
| 25 // WebFrameTestClient or to the product code (i.e. to RenderFrameImpl). | 24 // WebFrameTestClient or to the product code (i.e. to RenderFrameImpl). |
| 26 class WebFrameTestClient : public blink::WebFrameClient { | 25 class WebFrameTestClient : public blink::WebFrameClient { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // to track resource requests spanning willSendRequest, didReceiveResponse, | 117 // to track resource requests spanning willSendRequest, didReceiveResponse, |
| 119 // didChangeResourcePriority, didFinishResourceLoad. | 118 // didChangeResourcePriority, didFinishResourceLoad. |
| 120 std::map<unsigned, std::string> resource_identifier_map_; | 119 std::map<unsigned, std::string> resource_identifier_map_; |
| 121 | 120 |
| 122 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient); | 121 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient); |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 } // namespace test_runner | 124 } // namespace test_runner |
| 126 | 125 |
| 127 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ | 126 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ |
| OLD | NEW |