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

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

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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class WebSpeechSynthesizerClient; 43 class WebSpeechSynthesizerClient;
44 class WebThemeEngine; 44 class WebThemeEngine;
45 class WebURLRequest; 45 class WebURLRequest;
46 class WebWorkerPermissionClientProxy; 46 class WebWorkerPermissionClientProxy;
47 struct WebPluginParams; 47 struct WebPluginParams;
48 struct WebURLError; 48 struct WebURLError;
49 } 49 }
50 50
51 namespace content { 51 namespace content {
52 52
53 class DocumentState;
53 class RenderView; 54 class RenderView;
54 class SynchronousCompositor; 55 class SynchronousCompositor;
55 struct KeySystemInfo; 56 struct KeySystemInfo;
56 struct WebPluginInfo; 57 struct WebPluginInfo;
57 58
58 // Embedder API for participating in renderer logic. 59 // Embedder API for participating in renderer logic.
59 class CONTENT_EXPORT ContentRendererClient { 60 class CONTENT_EXPORT ContentRendererClient {
60 public: 61 public:
61 virtual ~ContentRendererClient() {} 62 virtual ~ContentRendererClient() {}
62 63
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( 162 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer(
162 blink::WebSpeechSynthesizerClient* client); 163 blink::WebSpeechSynthesizerClient* client);
163 164
164 // Returns true if the renderer process should schedule the idle handler when 165 // Returns true if the renderer process should schedule the idle handler when
165 // all widgets are hidden. 166 // all widgets are hidden.
166 virtual bool RunIdleHandlerWhenWidgetsHidden(); 167 virtual bool RunIdleHandlerWhenWidgetsHidden();
167 168
168 // Returns true if a popup window should be allowed. 169 // Returns true if a popup window should be allowed.
169 virtual bool AllowPopup(); 170 virtual bool AllowPopup();
170 171
172 #ifdef OS_ANDROID
173 // TODO(sgurun) This callback is deprecated and will be removed as soon
174 // as android webview completes implementation of a resource throttle based
175 // shouldoverrideurl implementation. See crbug.com/325351
176 //
171 // Returns true if the navigation was handled by the embedder and should be 177 // Returns true if the navigation was handled by the embedder and should be
172 // ignored by WebKit. This method is used by CEF. 178 // ignored by WebKit. This method is used by CEF and android_webview.
173 virtual bool HandleNavigation(blink::WebFrame* frame, 179 virtual bool HandleNavigation(RenderView* view,
180 DocumentState* document_state,
181 int opener_id,
182 blink::WebFrame* frame,
174 const blink::WebURLRequest& request, 183 const blink::WebURLRequest& request,
175 blink::WebNavigationType type, 184 blink::WebNavigationType type,
176 blink::WebNavigationPolicy default_policy, 185 blink::WebNavigationPolicy default_policy,
177 bool is_redirect); 186 bool is_redirect);
187 #endif
178 188
179 // Returns true if we should fork a new process for the given navigation. 189 // Returns true if we should fork a new process for the given navigation.
180 // If |send_referrer| is set to false (which is the default), no referrer 190 // If |send_referrer| is set to false (which is the default), no referrer
181 // header will be send for the navigation. Otherwise, the referrer header is 191 // header will be send for the navigation. Otherwise, the referrer header is
182 // set according to the frame's referrer policy. 192 // set according to the frame's referrer policy.
183 virtual bool ShouldFork(blink::WebFrame* frame, 193 virtual bool ShouldFork(blink::WebFrame* frame,
184 const GURL& url, 194 const GURL& url,
185 const std::string& http_method, 195 const std::string& http_method,
186 bool is_initial_navigation, 196 bool is_initial_navigation,
187 bool is_server_redirect, 197 bool is_server_redirect,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 273
264 // Creates a permission client proxy for in-renderer worker. 274 // Creates a permission client proxy for in-renderer worker.
265 virtual blink::WebWorkerPermissionClientProxy* 275 virtual blink::WebWorkerPermissionClientProxy*
266 CreateWorkerPermissionClientProxy(RenderView* render_view, 276 CreateWorkerPermissionClientProxy(RenderView* render_view,
267 blink::WebFrame* frame); 277 blink::WebFrame* frame);
268 }; 278 };
269 279
270 } // namespace content 280 } // namespace content
271 281
272 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 282 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698