| 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 #ifndef ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "content/public/renderer/content_renderer_client.h" | 8 #include "content/public/renderer/content_renderer_client.h" |
| 9 | 9 |
| 10 #include "android_webview/renderer/aw_render_process_observer.h" | 10 #include "android_webview/renderer/aw_render_process_observer.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 void GetNavigationErrorStrings(content::RenderFrame* render_frame, | 29 void GetNavigationErrorStrings(content::RenderFrame* render_frame, |
| 30 const blink::WebURLRequest& failed_request, | 30 const blink::WebURLRequest& failed_request, |
| 31 const blink::WebURLError& error, | 31 const blink::WebURLError& error, |
| 32 std::string* error_html, | 32 std::string* error_html, |
| 33 base::string16* error_description) override; | 33 base::string16* error_description) override; |
| 34 unsigned long long VisitedLinkHash(const char* canonical_url, | 34 unsigned long long VisitedLinkHash(const char* canonical_url, |
| 35 size_t length) override; | 35 size_t length) override; |
| 36 bool IsLinkVisited(unsigned long long link_hash) override; | 36 bool IsLinkVisited(unsigned long long link_hash) override; |
| 37 void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems) override; | 37 void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems) override; |
| 38 | 38 |
| 39 bool HandleNavigation(content::RenderFrame* render_frame, | |
| 40 bool is_content_initiated, | |
| 41 int opener_id, | |
| 42 blink::WebFrame* frame, | |
| 43 const blink::WebURLRequest& request, | |
| 44 blink::WebNavigationType type, | |
| 45 blink::WebNavigationPolicy default_policy, | |
| 46 bool is_redirect) override; | |
| 47 bool ShouldOverridePageVisibilityState( | 39 bool ShouldOverridePageVisibilityState( |
| 48 const content::RenderFrame* render_frame, | 40 const content::RenderFrame* render_frame, |
| 49 blink::WebPageVisibilityState* override_state) override; | 41 blink::WebPageVisibilityState* override_state) override; |
| 50 | 42 |
| 51 private: | 43 private: |
| 52 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; | 44 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; |
| 53 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 45 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
| 54 const bool disable_page_visibility_; | 46 const bool disable_page_visibility_; |
| 55 }; | 47 }; |
| 56 | 48 |
| 57 } // namespace android_webview | 49 } // namespace android_webview |
| 58 | 50 |
| 59 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 51 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |