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

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

Issue 1973133002: ✀ Remove postMessage plumbing for swappedout:// ✀ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to use std::move instead of release(). Created 4 years, 7 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
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_frame_test_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const blink::WebURLResponse& redirect_response) override; 94 const blink::WebURLResponse& redirect_response) override;
95 void didReceiveResponse(unsigned identifier, 95 void didReceiveResponse(unsigned identifier,
96 const blink::WebURLResponse& response) override; 96 const blink::WebURLResponse& response) override;
97 void didChangeResourcePriority(unsigned identifier, 97 void didChangeResourcePriority(unsigned identifier,
98 const blink::WebURLRequest::Priority& priority, 98 const blink::WebURLRequest::Priority& priority,
99 int intra_priority_value) override; 99 int intra_priority_value) override;
100 void didFinishResourceLoad(blink::WebLocalFrame* frame, 100 void didFinishResourceLoad(blink::WebLocalFrame* frame,
101 unsigned identifier) override; 101 unsigned identifier) override;
102 blink::WebNavigationPolicy decidePolicyForNavigation( 102 blink::WebNavigationPolicy decidePolicyForNavigation(
103 const blink::WebFrameClient::NavigationPolicyInfo& info) override; 103 const blink::WebFrameClient::NavigationPolicyInfo& info) override;
104 bool willCheckAndDispatchMessageEvent(
105 blink::WebLocalFrame* source_frame,
106 blink::WebFrame* target_frame,
107 blink::WebSecurityOrigin target,
108 blink::WebDOMMessageEvent event) override;
109 void checkIfAudioSinkExistsAndIsAuthorized( 104 void checkIfAudioSinkExistsAndIsAuthorized(
110 const blink::WebString& sink_id, 105 const blink::WebString& sink_id,
111 const blink::WebSecurityOrigin& security_origin, 106 const blink::WebSecurityOrigin& security_origin,
112 blink::WebSetSinkIdCallbacks* web_callbacks) override; 107 blink::WebSetSinkIdCallbacks* web_callbacks) override;
113 void didClearWindowObject(blink::WebLocalFrame* frame) override; 108 void didClearWindowObject(blink::WebLocalFrame* frame) override;
114 109
115 private: 110 private:
116 // Borrowed pointers to other parts of Layout Tests state. 111 // Borrowed pointers to other parts of Layout Tests state.
117 TestRunner* test_runner_; 112 TestRunner* test_runner_;
118 WebTestDelegate* delegate_; 113 WebTestDelegate* delegate_;
119 WebTestProxyBase* web_test_proxy_base_; 114 WebTestProxyBase* web_test_proxy_base_;
120 WebFrameTestProxyBase* web_frame_test_proxy_base_; 115 WebFrameTestProxyBase* web_frame_test_proxy_base_;
121 116
122 // Map from request identifier into resource url description. The map is used 117 // Map from request identifier into resource url description. The map is used
123 // to track resource requests spanning willSendRequest, didReceiveResponse, 118 // to track resource requests spanning willSendRequest, didReceiveResponse,
124 // didChangeResourcePriority, didFinishResourceLoad. 119 // didChangeResourcePriority, didFinishResourceLoad.
125 std::map<unsigned, std::string> resource_identifier_map_; 120 std::map<unsigned, std::string> resource_identifier_map_;
126 121
127 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient); 122 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient);
128 }; 123 };
129 124
130 } // namespace test_runner 125 } // namespace test_runner
131 126
132 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ 127 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_frame_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698