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

Side by Side Diff: content/public/renderer/content_renderer_client.cc

Issue 27551003: The content api for shouldoverrideurlloading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: conditionalized the handlenavigation API for android Created 7 years 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 (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 #include "content/public/renderer/content_renderer_client.h" 5 #include "content/public/renderer/content_renderer_client.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 SkBitmap* ContentRendererClient::GetSadPluginBitmap() { 9 SkBitmap* ContentRendererClient::GetSadPluginBitmap() {
10 return NULL; 10 return NULL;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { 86 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
87 return true; 87 return true;
88 } 88 }
89 89
90 bool ContentRendererClient::AllowPopup() { 90 bool ContentRendererClient::AllowPopup() {
91 return false; 91 return false;
92 } 92 }
93 93
94 #ifdef OS_ANDROID
94 bool ContentRendererClient::HandleNavigation( 95 bool ContentRendererClient::HandleNavigation(
96 RenderView* view,
97 DocumentState* document_state,
98 int opener_id,
95 blink::WebFrame* frame, 99 blink::WebFrame* frame,
96 const blink::WebURLRequest& request, 100 const blink::WebURLRequest& request,
97 blink::WebNavigationType type, 101 blink::WebNavigationType type,
98 blink::WebNavigationPolicy default_policy, 102 blink::WebNavigationPolicy default_policy,
99 bool is_redirect) { 103 bool is_redirect) {
100 return false; 104 return false;
101 } 105 }
106 #endif
102 107
103 bool ContentRendererClient::ShouldFork(blink::WebFrame* frame, 108 bool ContentRendererClient::ShouldFork(blink::WebFrame* frame,
104 const GURL& url, 109 const GURL& url,
105 const std::string& http_method, 110 const std::string& http_method,
106 bool is_initial_navigation, 111 bool is_initial_navigation,
107 bool is_server_redirect, 112 bool is_server_redirect,
108 bool* send_referrer) { 113 bool* send_referrer) {
109 return false; 114 return false;
110 } 115 }
111 116
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 return true; 195 return true;
191 } 196 }
192 197
193 blink::WebWorkerPermissionClientProxy* 198 blink::WebWorkerPermissionClientProxy*
194 ContentRendererClient::CreateWorkerPermissionClientProxy( 199 ContentRendererClient::CreateWorkerPermissionClientProxy(
195 RenderView* render_view, blink::WebFrame* frame) { 200 RenderView* render_view, blink::WebFrame* frame) {
196 return NULL; 201 return NULL;
197 } 202 }
198 203
199 } // namespace content 204 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698