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_WEBFRAMETESTPROXY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBFRAMETESTPROXY_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBFRAMETESTPROXY_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBFRAMETESTPROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/shell/renderer/test_runner/WebTestProxy.h" | 9 #include "content/shell/renderer/test_runner/WebTestProxy.h" |
10 #include "third_party/WebKit/public/platform/WebString.h" | 10 #include "third_party/WebKit/public/platform/WebString.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void willSendRequest(blink::WebLocalFrame* frame, unsigned identifie
r, blink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) | 133 virtual void willSendRequest(blink::WebLocalFrame* frame, unsigned identifie
r, blink::WebURLRequest& request, const blink::WebURLResponse& redirectResponse) |
134 { | 134 { |
135 m_baseProxy->willSendRequest(frame, identifier, request, redirectRespons
e); | 135 m_baseProxy->willSendRequest(frame, identifier, request, redirectRespons
e); |
136 Base::willSendRequest(frame, identifier, request, redirectResponse); | 136 Base::willSendRequest(frame, identifier, request, redirectResponse); |
137 } | 137 } |
138 virtual void didReceiveResponse(blink::WebLocalFrame* frame, unsigned identi
fier, const blink::WebURLResponse& response) | 138 virtual void didReceiveResponse(blink::WebLocalFrame* frame, unsigned identi
fier, const blink::WebURLResponse& response) |
139 { | 139 { |
140 m_baseProxy->didReceiveResponse(frame, identifier, response); | 140 m_baseProxy->didReceiveResponse(frame, identifier, response); |
141 Base::didReceiveResponse(frame, identifier, response); | 141 Base::didReceiveResponse(frame, identifier, response); |
142 } | 142 } |
143 virtual void didChangeResourcePriority(blink::WebLocalFrame* frame, unsigned
identifier, const blink::WebURLRequest::Priority& priority) | 143 virtual void didChangeResourcePriority(blink::WebLocalFrame* frame, unsigned
identifier, const blink::WebURLRequest::Priority& priority, int intra_priority_
value) |
144 { | 144 { |
145 // This is not implemented in RenderFrameImpl, so need to explicitly cal
l | 145 // This is not implemented in RenderFrameImpl, so need to explicitly cal
l |
146 // into the base proxy. | 146 // into the base proxy. |
147 m_baseProxy->didChangeResourcePriority(frame, identifier, priority); | 147 m_baseProxy->didChangeResourcePriority(frame, identifier, priority, intr
a_priority_value); |
148 Base::didChangeResourcePriority(frame, identifier, priority); | 148 Base::didChangeResourcePriority(frame, identifier, priority, intra_prior
ity_value); |
149 } | 149 } |
150 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame, unsigned ide
ntifier) | 150 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame, unsigned ide
ntifier) |
151 { | 151 { |
152 Base::didFinishResourceLoad(frame, identifier); | 152 Base::didFinishResourceLoad(frame, identifier); |
153 } | 153 } |
154 virtual blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebLocal
Frame* frame, blink::WebDataSource::ExtraData* extraData, const blink::WebURLReq
uest& request, blink::WebNavigationType type, blink::WebNavigationPolicy default
Policy, bool isRedirect) | 154 virtual blink::WebNavigationPolicy decidePolicyForNavigation(blink::WebLocal
Frame* frame, blink::WebDataSource::ExtraData* extraData, const blink::WebURLReq
uest& request, blink::WebNavigationType type, blink::WebNavigationPolicy default
Policy, bool isRedirect) |
155 { | 155 { |
156 blink::WebNavigationPolicy policy = m_baseProxy->decidePolicyForNavigati
on(frame, extraData, request, type, defaultPolicy, isRedirect); | 156 blink::WebNavigationPolicy policy = m_baseProxy->decidePolicyForNavigati
on(frame, extraData, request, type, defaultPolicy, isRedirect); |
157 if (policy == blink::WebNavigationPolicyIgnore) | 157 if (policy == blink::WebNavigationPolicyIgnore) |
158 return policy; | 158 return policy; |
(...skipping 19 matching lines...) Expand all Loading... |
178 // It is used instead of a #define and is set by layouttest_support when | 178 // It is used instead of a #define and is set by layouttest_support when |
179 // creating this object. | 179 // creating this object. |
180 int m_version; | 180 int m_version; |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); | 182 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); |
183 }; | 183 }; |
184 | 184 |
185 } | 185 } |
186 | 186 |
187 #endif // WebTestProxy_h | 187 #endif // WebTestProxy_h |
OLD | NEW |