| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "android_webview/renderer/aw_render_process_observer.h" | 11 #include "android_webview/renderer/aw_render_process_observer.h" |
| 12 | 12 |
| 13 namespace components { |
| 14 class VisitedLinkSlave; |
| 15 } // namespace components |
| 16 |
| 13 namespace android_webview { | 17 namespace android_webview { |
| 14 | 18 |
| 15 class AwContentRendererClient : public content::ContentRendererClient { | 19 class AwContentRendererClient : public content::ContentRendererClient { |
| 16 public: | 20 public: |
| 17 AwContentRendererClient(); | 21 AwContentRendererClient(); |
| 18 virtual ~AwContentRendererClient(); | 22 virtual ~AwContentRendererClient(); |
| 19 | 23 |
| 20 // ContentRendererClient implementation. | 24 // ContentRendererClient implementation. |
| 21 virtual void RenderThreadStarted() OVERRIDE; | 25 virtual void RenderThreadStarted() OVERRIDE; |
| 22 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; | 26 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; |
| 23 virtual std::string GetDefaultEncoding() OVERRIDE; | 27 virtual std::string GetDefaultEncoding() OVERRIDE; |
| 24 virtual bool HasErrorPage(int http_status_code, | 28 virtual bool HasErrorPage(int http_status_code, |
| 25 std::string* error_domain) OVERRIDE; | 29 std::string* error_domain) OVERRIDE; |
| 26 virtual void GetNavigationErrorStrings( | 30 virtual void GetNavigationErrorStrings( |
| 27 const WebKit::WebURLRequest& failed_request, | 31 const WebKit::WebURLRequest& failed_request, |
| 28 const WebKit::WebURLError& error, | 32 const WebKit::WebURLError& error, |
| 29 std::string* error_html, | 33 std::string* error_html, |
| 30 string16* error_description) OVERRIDE; | 34 string16* error_description) OVERRIDE; |
| 31 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 35 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
| 32 size_t length) OVERRIDE; | 36 size_t length) OVERRIDE; |
| 33 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 37 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
| 34 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 38 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
| 35 | 39 |
| 36 private: | 40 private: |
| 37 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; | 41 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; |
| 42 scoped_ptr<components::VisitedLinkSlave> visited_link_slave_; |
| 38 }; | 43 }; |
| 39 | 44 |
| 40 } // namespace android_webview | 45 } // namespace android_webview |
| 41 | 46 |
| 42 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 47 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |