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

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

Issue 24228003: Upstream ShouldOverrideUrlLoading changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
OLDNEW
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 content {
14 class DocumentState;
15 class RenderView;
16 }
13 namespace visitedlink { 17 namespace visitedlink {
14 class VisitedLinkSlave; 18 class VisitedLinkSlave;
15 } 19 }
16 20
17 namespace android_webview { 21 namespace android_webview {
18 22
19 class AwContentRendererClient : public content::ContentRendererClient { 23 class AwContentRendererClient : public content::ContentRendererClient {
20 public: 24 public:
21 AwContentRendererClient(); 25 AwContentRendererClient();
22 virtual ~AwContentRendererClient(); 26 virtual ~AwContentRendererClient();
23 27
24 // ContentRendererClient implementation. 28 // ContentRendererClient implementation.
25 virtual void RenderThreadStarted() OVERRIDE; 29 virtual void RenderThreadStarted() OVERRIDE;
26 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; 30 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE;
27 virtual std::string GetDefaultEncoding() OVERRIDE; 31 virtual std::string GetDefaultEncoding() OVERRIDE;
28 virtual bool HasErrorPage(int http_status_code, 32 virtual bool HasErrorPage(int http_status_code,
29 std::string* error_domain) OVERRIDE; 33 std::string* error_domain) OVERRIDE;
30 virtual void GetNavigationErrorStrings( 34 virtual void GetNavigationErrorStrings(
31 WebKit::WebFrame* frame, 35 WebKit::WebFrame* frame,
32 const WebKit::WebURLRequest& failed_request, 36 const WebKit::WebURLRequest& failed_request,
33 const WebKit::WebURLError& error, 37 const WebKit::WebURLError& error,
34 std::string* error_html, 38 std::string* error_html,
35 string16* error_description) OVERRIDE; 39 string16* error_description) OVERRIDE;
36 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 40 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
37 size_t length) OVERRIDE; 41 size_t length) OVERRIDE;
38 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; 42 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
39 43
44 virtual bool HandleNavigation(content::RenderView* view,
45 content::DocumentState* document_state,
46 WebKit::WebFrame* frame,
47 const WebKit::WebURLRequest& request,
48 WebKit::WebNavigationType type,
49 WebKit::WebNavigationPolicy default_policy,
50 bool is_redirect) OVERRIDE;
51
40 private: 52 private:
41 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; 53 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_;
42 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; 54 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_;
43 }; 55 };
44 56
45 } // namespace android_webview 57 } // namespace android_webview
46 58
47 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ 59 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698