Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: android_webview/renderer/aw_content_renderer_client.h

Issue 11860014: Android WebView visited link highlighting implementation part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to pass no_disk parameter instead of using delegate. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « android_webview/renderer/DEPS ('k') | android_webview/renderer/aw_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « android_webview/renderer/DEPS ('k') | android_webview/renderer/aw_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698