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 <stddef.h> | 10 #include <stddef.h> |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 bool HandleNavigation(content::RenderFrame* render_frame, | 41 bool HandleNavigation(content::RenderFrame* render_frame, |
42 bool is_content_initiated, | 42 bool is_content_initiated, |
43 int opener_id, | 43 int opener_id, |
44 blink::WebFrame* frame, | 44 blink::WebFrame* frame, |
45 const blink::WebURLRequest& request, | 45 const blink::WebURLRequest& request, |
46 blink::WebNavigationType type, | 46 blink::WebNavigationType type, |
47 blink::WebNavigationPolicy default_policy, | 47 blink::WebNavigationPolicy default_policy, |
48 bool is_redirect) override; | 48 bool is_redirect) override; |
49 bool ShouldUseMediaPlayerForURL(const GURL& url) override; | 49 bool ShouldUseMediaPlayerForURL(const GURL& url) override; |
50 bool ShouldOverridePageVisibilityState( | |
51 const content::RenderFrame* render_frame, | |
52 blink::WebPageVisibilityState* override_state) override; | |
53 | 50 |
54 private: | 51 private: |
55 std::unique_ptr<AwRenderThreadObserver> aw_render_thread_observer_; | 52 std::unique_ptr<AwRenderThreadObserver> aw_render_thread_observer_; |
56 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 53 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
57 const bool disable_page_visibility_; | |
58 }; | 54 }; |
59 | 55 |
60 } // namespace android_webview | 56 } // namespace android_webview |
61 | 57 |
62 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 58 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |