Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: components/test_runner/web_frame_test_client.h

Issue 2211283004: Drop test-only WebFrameClient params/functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void didHandleOnloadEvents(blink::WebLocalFrame* frame) override; 82 void didHandleOnloadEvents(blink::WebLocalFrame* frame) override;
83 void didFailLoad(blink::WebLocalFrame* frame, 83 void didFailLoad(blink::WebLocalFrame* frame,
84 const blink::WebURLError& error, 84 const blink::WebURLError& error,
85 blink::WebHistoryCommitType commit_type) override; 85 blink::WebHistoryCommitType commit_type) override;
86 void didFinishLoad(blink::WebLocalFrame* frame) override; 86 void didFinishLoad(blink::WebLocalFrame* frame) override;
87 void didStopLoading() override; 87 void didStopLoading() override;
88 void didDetectXSS(const blink::WebURL& insecure_url, 88 void didDetectXSS(const blink::WebURL& insecure_url,
89 bool did_block_entire_page) override; 89 bool did_block_entire_page) override;
90 void didDispatchPingLoader(const blink::WebURL& url) override; 90 void didDispatchPingLoader(const blink::WebURL& url) override;
91 void willSendRequest(blink::WebLocalFrame* frame, 91 void willSendRequest(blink::WebLocalFrame* frame,
92 unsigned identifier, 92 blink::WebURLRequest& request) override;
93 blink::WebURLRequest& request, 93 void didReceiveResponse(const blink::WebURLResponse& response) override;
94 const blink::WebURLResponse& redirect_response) override;
95 void didReceiveResponse(unsigned identifier,
96 const blink::WebURLResponse& response) override;
97 void didChangeResourcePriority(unsigned identifier,
98 const blink::WebURLRequest::Priority& priority,
99 int intra_priority_value) override;
100 void didFinishResourceLoad(blink::WebLocalFrame* frame,
101 unsigned identifier) override;
102 blink::WebNavigationPolicy decidePolicyForNavigation( 94 blink::WebNavigationPolicy decidePolicyForNavigation(
103 const blink::WebFrameClient::NavigationPolicyInfo& info) override; 95 const blink::WebFrameClient::NavigationPolicyInfo& info) override;
104 void checkIfAudioSinkExistsAndIsAuthorized( 96 void checkIfAudioSinkExistsAndIsAuthorized(
105 const blink::WebString& sink_id, 97 const blink::WebString& sink_id,
106 const blink::WebSecurityOrigin& security_origin, 98 const blink::WebSecurityOrigin& security_origin,
107 blink::WebSetSinkIdCallbacks* web_callbacks) override; 99 blink::WebSetSinkIdCallbacks* web_callbacks) override;
108 void didClearWindowObject(blink::WebLocalFrame* frame) override; 100 void didClearWindowObject(blink::WebLocalFrame* frame) override;
109 bool runFileChooser(const blink::WebFileChooserParams& params, 101 bool runFileChooser(const blink::WebFileChooserParams& params,
110 blink::WebFileChooserCompletion* completion) override; 102 blink::WebFileChooserCompletion* completion) override;
111 103
112 private: 104 private:
113 // Borrowed pointers to other parts of Layout Tests state. 105 // Borrowed pointers to other parts of Layout Tests state.
114 TestRunner* test_runner_; 106 TestRunner* test_runner_;
115 WebTestDelegate* delegate_; 107 WebTestDelegate* delegate_;
116 WebViewTestProxyBase* web_view_test_proxy_base_; 108 WebViewTestProxyBase* web_view_test_proxy_base_;
117 WebFrameTestProxyBase* web_frame_test_proxy_base_; 109 WebFrameTestProxyBase* web_frame_test_proxy_base_;
118 110
119 // Map from request identifier into resource url description. The map is used
120 // to track resource requests spanning willSendRequest, didReceiveResponse,
121 // didChangeResourcePriority, didFinishResourceLoad.
122 std::map<unsigned, std::string> resource_identifier_map_;
123
124 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient); 111 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient);
125 }; 112 };
126 113
127 } // namespace test_runner 114 } // namespace test_runner
128 115
129 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ 116 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698