| 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 "android_webview/common/aw_resource.h" | 7 #include "android_webview/common/aw_resource.h" |
| 8 #include "android_webview/common/render_view_messages.h" | 8 #include "android_webview/common/render_view_messages.h" |
| 9 #include "android_webview/common/url_constants.h" | 9 #include "android_webview/common/url_constants.h" |
| 10 #include "android_webview/renderer/aw_key_systems.h" | 10 #include "android_webview/renderer/aw_key_systems.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 const char* canonical_url, | 186 const char* canonical_url, |
| 187 size_t length) { | 187 size_t length) { |
| 188 return visited_link_slave_->ComputeURLFingerprint(canonical_url, length); | 188 return visited_link_slave_->ComputeURLFingerprint(canonical_url, length); |
| 189 } | 189 } |
| 190 | 190 |
| 191 bool AwContentRendererClient::IsLinkVisited(unsigned long long link_hash) { | 191 bool AwContentRendererClient::IsLinkVisited(unsigned long long link_hash) { |
| 192 return visited_link_slave_->IsVisited(link_hash); | 192 return visited_link_slave_->IsVisited(link_hash); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void AwContentRendererClient::AddKeySystems( | 195 void AwContentRendererClient::AddKeySystems( |
| 196 std::vector<content::KeySystemInfo>* key_systems) { | 196 std::vector<media::KeySystemInfo>* key_systems) { |
| 197 AwAddKeySystems(key_systems); | 197 AwAddKeySystems(key_systems); |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool AwContentRendererClient::ShouldOverridePageVisibilityState( | 200 bool AwContentRendererClient::ShouldOverridePageVisibilityState( |
| 201 const content::RenderFrame* render_frame, | 201 const content::RenderFrame* render_frame, |
| 202 blink::WebPageVisibilityState* override_state) { | 202 blink::WebPageVisibilityState* override_state) { |
| 203 // webview is always visible due to rendering requirements. | 203 // webview is always visible due to rendering requirements. |
| 204 *override_state = blink::WebPageVisibilityStateVisible; | 204 *override_state = blink::WebPageVisibilityStateVisible; |
| 205 return true; | 205 return true; |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace android_webview | 208 } // namespace android_webview |
| OLD | NEW |