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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 void didFinishDocumentLoad(blink::WebFrame*); | 175 void didFinishDocumentLoad(blink::WebFrame*); |
176 void didHandleOnloadEvents(blink::WebFrame*); | 176 void didHandleOnloadEvents(blink::WebFrame*); |
177 void didFailLoad(blink::WebFrame*, const blink::WebURLError&); | 177 void didFailLoad(blink::WebFrame*, const blink::WebURLError&); |
178 void didFinishLoad(blink::WebFrame*); | 178 void didFinishLoad(blink::WebFrame*); |
179 void didChangeLocationWithinPage(blink::WebFrame*); | 179 void didChangeLocationWithinPage(blink::WebFrame*); |
180 void didDetectXSS(blink::WebFrame*, const blink::WebURL& insecureURL, bool d
idBlockEntirePage); | 180 void didDetectXSS(blink::WebFrame*, const blink::WebURL& insecureURL, bool d
idBlockEntirePage); |
181 void didDispatchPingLoader(blink::WebFrame*, const blink::WebURL&); | 181 void didDispatchPingLoader(blink::WebFrame*, const blink::WebURL&); |
182 void willRequestResource(blink::WebFrame*, const blink::WebCachedURLRequest&
); | 182 void willRequestResource(blink::WebFrame*, const blink::WebCachedURLRequest&
); |
183 void willSendRequest(blink::WebFrame*, unsigned identifier, blink::WebURLReq
uest&, const blink::WebURLResponse& redirectResponse); | 183 void willSendRequest(blink::WebFrame*, unsigned identifier, blink::WebURLReq
uest&, const blink::WebURLResponse& redirectResponse); |
184 void didReceiveResponse(blink::WebFrame*, unsigned identifier, const blink::
WebURLResponse&); | 184 void didReceiveResponse(blink::WebFrame*, unsigned identifier, const blink::
WebURLResponse&); |
185 void didChangeResourcePriority(blink::WebFrame*, unsigned identifier, const
blink::WebURLRequest::Priority&); | 185 void didChangeResourcePriority(blink::WebFrame*, unsigned identifier, const
blink::WebURLRequest::Priority&, int intra_priority_value); |
186 void didFinishResourceLoad(blink::WebFrame*, unsigned identifier); | 186 void didFinishResourceLoad(blink::WebFrame*, unsigned identifier); |
187 blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebFrame*, blink
::WebDataSource::ExtraData*, const blink::WebURLRequest&, blink::WebNavigationTy
pe, blink::WebNavigationPolicy defaultPolicy, bool isRedirect); | 187 blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebFrame*, blink
::WebDataSource::ExtraData*, const blink::WebURLRequest&, blink::WebNavigationTy
pe, blink::WebNavigationPolicy defaultPolicy, bool isRedirect); |
188 bool willCheckAndDispatchMessageEvent(blink::WebFrame* sourceFrame, blink::W
ebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDOMMessageEvent
); | 188 bool willCheckAndDispatchMessageEvent(blink::WebFrame* sourceFrame, blink::W
ebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDOMMessageEvent
); |
189 void resetInputMethod(); | 189 void resetInputMethod(); |
190 | 190 |
191 private: | 191 private: |
192 template<class, typename, typename> friend class WebFrameTestProxy; | 192 template<class, typename, typename> friend class WebFrameTestProxy; |
193 void locationChangeDone(blink::WebFrame*); | 193 void locationChangeDone(blink::WebFrame*); |
194 void paintRect(const blink::WebRect&); | 194 void paintRect(const blink::WebRect&); |
195 void paintInvalidatedRegion(); | 195 void paintInvalidatedRegion(); |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 virtual void willSendRequest(blink::WebFrame* frame, unsigned identifier, bl
ink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) | 436 virtual void willSendRequest(blink::WebFrame* frame, unsigned identifier, bl
ink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) |
437 { | 437 { |
438 WebTestProxyBase::willSendRequest(frame, identifier, request, redirectRe
sponse); | 438 WebTestProxyBase::willSendRequest(frame, identifier, request, redirectRe
sponse); |
439 Base::willSendRequest(frame, identifier, request, redirectResponse); | 439 Base::willSendRequest(frame, identifier, request, redirectResponse); |
440 } | 440 } |
441 virtual void didReceiveResponse(blink::WebFrame* frame, unsigned identifier,
const blink::WebURLResponse& response) | 441 virtual void didReceiveResponse(blink::WebFrame* frame, unsigned identifier,
const blink::WebURLResponse& response) |
442 { | 442 { |
443 WebTestProxyBase::didReceiveResponse(frame, identifier, response); | 443 WebTestProxyBase::didReceiveResponse(frame, identifier, response); |
444 Base::didReceiveResponse(frame, identifier, response); | 444 Base::didReceiveResponse(frame, identifier, response); |
445 } | 445 } |
446 virtual void didChangeResourcePriority(blink::WebFrame* frame, unsigned iden
tifier, const blink::WebURLRequest::Priority& priority) | 446 virtual void didChangeResourcePriority(blink::WebFrame* frame, unsigned iden
tifier, const blink::WebURLRequest::Priority& priority, int intra_priority_value
) |
447 { | 447 { |
448 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority)
; | 448 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority,
intra_priority_value); |
449 Base::didChangeResourcePriority(frame, identifier, priority); | 449 Base::didChangeResourcePriority(frame, identifier, priority, intra_prior
ity_value); |
450 } | 450 } |
451 virtual void didFinishResourceLoad(blink::WebFrame* frame, unsigned identifi
er) | 451 virtual void didFinishResourceLoad(blink::WebFrame* frame, unsigned identifi
er) |
452 { | 452 { |
453 WebTestProxyBase::didFinishResourceLoad(frame, identifier); | 453 WebTestProxyBase::didFinishResourceLoad(frame, identifier); |
454 Base::didFinishResourceLoad(frame, identifier); | 454 Base::didFinishResourceLoad(frame, identifier); |
455 } | 455 } |
456 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
const blink::WebString& sourceName, unsigned sourceLine, const blink::WebString
& stackTrace) | 456 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
const blink::WebString& sourceName, unsigned sourceLine, const blink::WebString
& stackTrace) |
457 { | 457 { |
458 WebTestProxyBase::didAddMessageToConsole(message, sourceName, sourceLine
); | 458 WebTestProxyBase::didAddMessageToConsole(message, sourceName, sourceLine
); |
459 Base::didAddMessageToConsole(message, sourceName, sourceLine, stackTrace
); | 459 Base::didAddMessageToConsole(message, sourceName, sourceLine, stackTrace
); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 WebTestProxyBase::postSpellCheckEvent(eventName); | 519 WebTestProxyBase::postSpellCheckEvent(eventName); |
520 } | 520 } |
521 | 521 |
522 private: | 522 private: |
523 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 523 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
524 }; | 524 }; |
525 | 525 |
526 } | 526 } |
527 | 527 |
528 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 528 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
OLD | NEW |