OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 void didFinishDocumentLoad(blink::WebFrame*); | 176 void didFinishDocumentLoad(blink::WebFrame*); |
177 void didHandleOnloadEvents(blink::WebFrame*); | 177 void didHandleOnloadEvents(blink::WebFrame*); |
178 void didFailLoad(blink::WebFrame*, const blink::WebURLError&); | 178 void didFailLoad(blink::WebFrame*, const blink::WebURLError&); |
179 void didFinishLoad(blink::WebFrame*); | 179 void didFinishLoad(blink::WebFrame*); |
180 void didChangeLocationWithinPage(blink::WebFrame*); | 180 void didChangeLocationWithinPage(blink::WebFrame*); |
181 void didDetectXSS(blink::WebFrame*, const blink::WebURL& insecureURL, bool d
idBlockEntirePage); | 181 void didDetectXSS(blink::WebFrame*, const blink::WebURL& insecureURL, bool d
idBlockEntirePage); |
182 void didDispatchPingLoader(blink::WebFrame*, const blink::WebURL&); | 182 void didDispatchPingLoader(blink::WebFrame*, const blink::WebURL&); |
183 void willRequestResource(blink::WebFrame*, const blink::WebCachedURLRequest&
); | 183 void willRequestResource(blink::WebFrame*, const blink::WebCachedURLRequest&
); |
184 void willSendRequest(blink::WebFrame*, unsigned identifier, blink::WebURLReq
uest&, const blink::WebURLResponse& redirectResponse); | 184 void willSendRequest(blink::WebFrame*, unsigned identifier, blink::WebURLReq
uest&, const blink::WebURLResponse& redirectResponse); |
185 void didReceiveResponse(blink::WebFrame*, unsigned identifier, const blink::
WebURLResponse&); | 185 void didReceiveResponse(blink::WebFrame*, unsigned identifier, const blink::
WebURLResponse&); |
186 void didChangeResourcePriority(blink::WebFrame*, unsigned identifier, const
blink::WebURLRequest::Priority&, int intra_priority_value); | 186 void didChangeResourcePriority(blink::WebFrame*, unsigned identifier, const
blink::WebURLRequest::Priority&); |
187 void didFinishResourceLoad(blink::WebFrame*, unsigned identifier); | 187 void didFinishResourceLoad(blink::WebFrame*, unsigned identifier); |
188 blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebFrame*, blink
::WebDataSource::ExtraData*, const blink::WebURLRequest&, blink::WebNavigationTy
pe, blink::WebNavigationPolicy defaultPolicy, bool isRedirect); | 188 blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebFrame*, blink
::WebDataSource::ExtraData*, const blink::WebURLRequest&, blink::WebNavigationTy
pe, blink::WebNavigationPolicy defaultPolicy, bool isRedirect); |
189 bool willCheckAndDispatchMessageEvent(blink::WebFrame* sourceFrame, blink::W
ebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDOMMessageEvent
); | 189 bool willCheckAndDispatchMessageEvent(blink::WebFrame* sourceFrame, blink::W
ebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDOMMessageEvent
); |
190 void resetInputMethod(); | 190 void resetInputMethod(); |
191 | 191 |
192 private: | 192 private: |
193 template<class, typename, typename> friend class WebFrameTestProxy; | 193 template<class, typename, typename> friend class WebFrameTestProxy; |
194 void locationChangeDone(blink::WebFrame*); | 194 void locationChangeDone(blink::WebFrame*); |
195 void paintRect(const blink::WebRect&); | 195 void paintRect(const blink::WebRect&); |
196 void paintInvalidatedRegion(); | 196 void paintInvalidatedRegion(); |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 virtual void willSendRequest(blink::WebFrame* frame, unsigned identifier, bl
ink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) | 426 virtual void willSendRequest(blink::WebFrame* frame, unsigned identifier, bl
ink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) |
427 { | 427 { |
428 WebTestProxyBase::willSendRequest(frame, identifier, request, redirectRe
sponse); | 428 WebTestProxyBase::willSendRequest(frame, identifier, request, redirectRe
sponse); |
429 Base::willSendRequest(frame, identifier, request, redirectResponse); | 429 Base::willSendRequest(frame, identifier, request, redirectResponse); |
430 } | 430 } |
431 virtual void didReceiveResponse(blink::WebFrame* frame, unsigned identifier,
const blink::WebURLResponse& response) | 431 virtual void didReceiveResponse(blink::WebFrame* frame, unsigned identifier,
const blink::WebURLResponse& response) |
432 { | 432 { |
433 WebTestProxyBase::didReceiveResponse(frame, identifier, response); | 433 WebTestProxyBase::didReceiveResponse(frame, identifier, response); |
434 Base::didReceiveResponse(frame, identifier, response); | 434 Base::didReceiveResponse(frame, identifier, response); |
435 } | 435 } |
436 virtual void didChangeResourcePriority(blink::WebFrame* frame, unsigned iden
tifier, const blink::WebURLRequest::Priority& priority, int intra_priority_value
) | 436 virtual void didChangeResourcePriority(blink::WebFrame* frame, unsigned iden
tifier, const blink::WebURLRequest::Priority& priority) |
437 { | 437 { |
438 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority,
intra_priority_value); | 438 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority)
; |
439 Base::didChangeResourcePriority(frame, identifier, priority, intra_prior
ity_value); | 439 Base::didChangeResourcePriority(frame, identifier, priority); |
440 } | 440 } |
441 virtual void didFinishResourceLoad(blink::WebFrame* frame, unsigned identifi
er) | 441 virtual void didFinishResourceLoad(blink::WebFrame* frame, unsigned identifi
er) |
442 { | 442 { |
443 WebTestProxyBase::didFinishResourceLoad(frame, identifier); | 443 WebTestProxyBase::didFinishResourceLoad(frame, identifier); |
444 Base::didFinishResourceLoad(frame, identifier); | 444 Base::didFinishResourceLoad(frame, identifier); |
445 } | 445 } |
446 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
const blink::WebString& sourceName, unsigned sourceLine, const blink::WebString
& stackTrace) | 446 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
const blink::WebString& sourceName, unsigned sourceLine, const blink::WebString
& stackTrace) |
447 { | 447 { |
448 WebTestProxyBase::didAddMessageToConsole(message, sourceName, sourceLine
); | 448 WebTestProxyBase::didAddMessageToConsole(message, sourceName, sourceLine
); |
449 Base::didAddMessageToConsole(message, sourceName, sourceLine, stackTrace
); | 449 Base::didAddMessageToConsole(message, sourceName, sourceLine, stackTrace
); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 WebTestProxyBase::postSpellCheckEvent(eventName); | 502 WebTestProxyBase::postSpellCheckEvent(eventName); |
503 } | 503 } |
504 | 504 |
505 private: | 505 private: |
506 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 506 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
507 }; | 507 }; |
508 | 508 |
509 } | 509 } |
510 | 510 |
511 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 511 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
OLD | NEW |