OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include "android_webview/renderer/aw_content_renderer_client.h" | 5 #include "android_webview/renderer/aw_content_renderer_client.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "android_webview/common/aw_resource.h" | 9 #include "android_webview/common/aw_resource.h" |
10 #include "android_webview/common/aw_switches.h" | 10 #include "android_webview/common/aw_switches.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 autofill::PasswordAutofillAgent* password_autofill_agent = | 154 autofill::PasswordAutofillAgent* password_autofill_agent = |
155 new autofill::PasswordAutofillAgent(render_frame); | 155 new autofill::PasswordAutofillAgent(render_frame); |
156 new autofill::AutofillAgent(render_frame, password_autofill_agent, NULL); | 156 new autofill::AutofillAgent(render_frame, password_autofill_agent, NULL); |
157 } | 157 } |
158 | 158 |
159 void AwContentRendererClient::RenderViewCreated( | 159 void AwContentRendererClient::RenderViewCreated( |
160 content::RenderView* render_view) { | 160 content::RenderView* render_view) { |
161 AwRenderViewExt::RenderViewCreated(render_view); | 161 AwRenderViewExt::RenderViewCreated(render_view); |
162 | 162 |
163 new printing::PrintWebViewHelper( | 163 new printing::PrintWebViewHelper( |
164 render_view, | 164 render_view, std::unique_ptr<printing::PrintWebViewHelper::Delegate>( |
165 scoped_ptr<printing::PrintWebViewHelper::Delegate>( | 165 new AwPrintWebViewHelperDelegate())); |
166 new AwPrintWebViewHelperDelegate())); | |
167 } | 166 } |
168 | 167 |
169 bool AwContentRendererClient::HasErrorPage(int http_status_code, | 168 bool AwContentRendererClient::HasErrorPage(int http_status_code, |
170 std::string* error_domain) { | 169 std::string* error_domain) { |
171 return http_status_code >= 400; | 170 return http_status_code >= 400; |
172 } | 171 } |
173 | 172 |
174 void AwContentRendererClient::GetNavigationErrorStrings( | 173 void AwContentRendererClient::GetNavigationErrorStrings( |
175 content::RenderFrame* /* render_frame */, | 174 content::RenderFrame* /* render_frame */, |
176 const blink::WebURLRequest& failed_request, | 175 const blink::WebURLRequest& failed_request, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 blink::WebPageVisibilityState* override_state) { | 255 blink::WebPageVisibilityState* override_state) { |
257 if (disable_page_visibility_) { | 256 if (disable_page_visibility_) { |
258 *override_state = blink::WebPageVisibilityStateVisible; | 257 *override_state = blink::WebPageVisibilityStateVisible; |
259 return true; | 258 return true; |
260 } | 259 } |
261 | 260 |
262 return false; | 261 return false; |
263 } | 262 } |
264 | 263 |
265 } // namespace android_webview | 264 } // namespace android_webview |
OLD | NEW |