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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 void didFinishDocumentLoad(blink::WebLocalFrame*); | 178 void didFinishDocumentLoad(blink::WebLocalFrame*); |
179 void didHandleOnloadEvents(blink::WebLocalFrame*); | 179 void didHandleOnloadEvents(blink::WebLocalFrame*); |
180 void didFailLoad(blink::WebLocalFrame*, const blink::WebURLError&); | 180 void didFailLoad(blink::WebLocalFrame*, const blink::WebURLError&); |
181 void didFinishLoad(blink::WebLocalFrame*); | 181 void didFinishLoad(blink::WebLocalFrame*); |
182 void didChangeLocationWithinPage(blink::WebLocalFrame*); | 182 void didChangeLocationWithinPage(blink::WebLocalFrame*); |
183 void didDetectXSS(blink::WebLocalFrame*, const blink::WebURL& insecureURL, b
ool didBlockEntirePage); | 183 void didDetectXSS(blink::WebLocalFrame*, const blink::WebURL& insecureURL, b
ool didBlockEntirePage); |
184 void didDispatchPingLoader(blink::WebLocalFrame*, const blink::WebURL&); | 184 void didDispatchPingLoader(blink::WebLocalFrame*, const blink::WebURL&); |
185 void willRequestResource(blink::WebLocalFrame*, const blink::WebCachedURLReq
uest&); | 185 void willRequestResource(blink::WebLocalFrame*, const blink::WebCachedURLReq
uest&); |
186 void willSendRequest(blink::WebLocalFrame*, unsigned identifier, blink::WebU
RLRequest&, const blink::WebURLResponse& redirectResponse); | 186 void willSendRequest(blink::WebLocalFrame*, unsigned identifier, blink::WebU
RLRequest&, const blink::WebURLResponse& redirectResponse); |
187 void didReceiveResponse(blink::WebLocalFrame*, unsigned identifier, const bl
ink::WebURLResponse&); | 187 void didReceiveResponse(blink::WebLocalFrame*, unsigned identifier, const bl
ink::WebURLResponse&); |
188 void didChangeResourcePriority(blink::WebLocalFrame*, unsigned identifier, c
onst blink::WebURLRequest::Priority&); | 188 void didChangeResourcePriority(blink::WebLocalFrame*, unsigned identifier, c
onst blink::WebURLRequest::Priority&, int intra_priority_value); |
189 void didFinishResourceLoad(blink::WebLocalFrame*, unsigned identifier); | 189 void didFinishResourceLoad(blink::WebLocalFrame*, unsigned identifier); |
190 blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebLocalFrame*,
blink::WebDataSource::ExtraData*, const blink::WebURLRequest&, blink::WebNavigat
ionType, blink::WebNavigationPolicy defaultPolicy, bool isRedirect); | 190 blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebLocalFrame*,
blink::WebDataSource::ExtraData*, const blink::WebURLRequest&, blink::WebNavigat
ionType, blink::WebNavigationPolicy defaultPolicy, bool isRedirect); |
191 bool willCheckAndDispatchMessageEvent(blink::WebLocalFrame* sourceFrame, bli
nk::WebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDOMMessage
Event); | 191 bool willCheckAndDispatchMessageEvent(blink::WebLocalFrame* sourceFrame, bli
nk::WebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDOMMessage
Event); |
192 void resetInputMethod(); | 192 void resetInputMethod(); |
193 | 193 |
194 private: | 194 private: |
195 template<class, typename, typename> friend class WebFrameTestProxy; | 195 template<class, typename, typename> friend class WebFrameTestProxy; |
196 void locationChangeDone(blink::WebFrame*); | 196 void locationChangeDone(blink::WebFrame*); |
197 void paintRect(const blink::WebRect&); | 197 void paintRect(const blink::WebRect&); |
198 void paintInvalidatedRegion(); | 198 void paintInvalidatedRegion(); |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 virtual void willSendRequest(blink::WebLocalFrame* frame, unsigned identifie
r, blink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) | 428 virtual void willSendRequest(blink::WebLocalFrame* frame, unsigned identifie
r, blink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) |
429 { | 429 { |
430 WebTestProxyBase::willSendRequest(frame, identifier, request, redirectRe
sponse); | 430 WebTestProxyBase::willSendRequest(frame, identifier, request, redirectRe
sponse); |
431 Base::willSendRequest(frame, identifier, request, redirectResponse); | 431 Base::willSendRequest(frame, identifier, request, redirectResponse); |
432 } | 432 } |
433 virtual void didReceiveResponse(blink::WebLocalFrame* frame, unsigned identi
fier, const blink::WebURLResponse& response) | 433 virtual void didReceiveResponse(blink::WebLocalFrame* frame, unsigned identi
fier, const blink::WebURLResponse& response) |
434 { | 434 { |
435 WebTestProxyBase::didReceiveResponse(frame, identifier, response); | 435 WebTestProxyBase::didReceiveResponse(frame, identifier, response); |
436 Base::didReceiveResponse(frame, identifier, response); | 436 Base::didReceiveResponse(frame, identifier, response); |
437 } | 437 } |
438 virtual void didChangeResourcePriority(blink::WebLocalFrame* frame, unsigned
identifier, const blink::WebURLRequest::Priority& priority) | 438 virtual void didChangeResourcePriority(blink::WebLocalFrame* frame, unsigned
identifier, const blink::WebURLRequest::Priority& priority, int intra_priority_
value) |
439 { | 439 { |
440 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority)
; | 440 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority,
intra_priority_value); |
441 Base::didChangeResourcePriority(frame, identifier, priority); | 441 Base::didChangeResourcePriority(frame, identifier, priority, intra_prior
ity_value); |
442 } | 442 } |
443 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame, unsigned ide
ntifier) | 443 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame, unsigned ide
ntifier) |
444 { | 444 { |
445 WebTestProxyBase::didFinishResourceLoad(frame, identifier); | 445 WebTestProxyBase::didFinishResourceLoad(frame, identifier); |
446 Base::didFinishResourceLoad(frame, identifier); | 446 Base::didFinishResourceLoad(frame, identifier); |
447 } | 447 } |
448 virtual void runModalAlertDialog(blink::WebLocalFrame* frame, const blink::W
ebString& message) | 448 virtual void runModalAlertDialog(blink::WebLocalFrame* frame, const blink::W
ebString& message) |
449 { | 449 { |
450 WebTestProxyBase::runModalAlertDialog(frame, message); | 450 WebTestProxyBase::runModalAlertDialog(frame, message); |
451 Base::runModalAlertDialog(frame, message); | 451 Base::runModalAlertDialog(frame, message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 WebTestProxyBase::postSpellCheckEvent(eventName); | 499 WebTestProxyBase::postSpellCheckEvent(eventName); |
500 } | 500 } |
501 | 501 |
502 private: | 502 private: |
503 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 503 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
504 }; | 504 }; |
505 | 505 |
506 } | 506 } |
507 | 507 |
508 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 508 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
OLD | NEW |