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" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 | 12 |
13 namespace visitedlink { | 13 namespace visitedlink { |
14 class VisitedLinkSlave; | 14 class VisitedLinkSlave; |
15 } | 15 } |
16 | 16 |
17 namespace android_webview { | 17 namespace android_webview { |
18 | 18 |
19 class AwContentRendererClient : public content::ContentRendererClient { | 19 class AwContentRendererClient : public content::ContentRendererClient { |
20 public: | 20 public: |
21 AwContentRendererClient(); | 21 AwContentRendererClient(); |
22 virtual ~AwContentRendererClient(); | 22 virtual ~AwContentRendererClient(); |
23 | 23 |
24 // ContentRendererClient implementation. | 24 // ContentRendererClient implementation. |
25 virtual void RenderThreadStarted() override; | 25 virtual void RenderThreadStarted() override; |
26 virtual void RenderFrameCreated(content::RenderFrame* render_frame) override; | 26 virtual void RenderFrameCreated(content::RenderFrame* render_frame) override; |
27 virtual void RenderViewCreated(content::RenderView* render_view) override; | 27 virtual void RenderViewCreated(content::RenderView* render_view) override; |
28 virtual std::string GetDefaultEncoding() override; | |
29 virtual bool HasErrorPage(int http_status_code, | 28 virtual bool HasErrorPage(int http_status_code, |
30 std::string* error_domain) override; | 29 std::string* error_domain) override; |
31 virtual void GetNavigationErrorStrings( | 30 virtual void GetNavigationErrorStrings( |
32 content::RenderView* render_view, | 31 content::RenderView* render_view, |
33 blink::WebFrame* frame, | 32 blink::WebFrame* frame, |
34 const blink::WebURLRequest& failed_request, | 33 const blink::WebURLRequest& failed_request, |
35 const blink::WebURLError& error, | 34 const blink::WebURLError& error, |
36 std::string* error_html, | 35 std::string* error_html, |
37 base::string16* error_description) override; | 36 base::string16* error_description) override; |
38 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 37 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
(...skipping 15 matching lines...) Expand all Loading... |
54 blink::WebPageVisibilityState* override_state) override; | 53 blink::WebPageVisibilityState* override_state) override; |
55 | 54 |
56 private: | 55 private: |
57 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; | 56 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; |
58 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 57 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
59 }; | 58 }; |
60 | 59 |
61 } // namespace android_webview | 60 } // namespace android_webview |
62 | 61 |
63 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 62 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |