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

Side by Side Diff: content/public/renderer/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, 2 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 (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 WebSpeechSynthesizer; 43 class WebSpeechSynthesizer;
44 class WebSpeechSynthesizerClient; 44 class WebSpeechSynthesizerClient;
45 class WebThemeEngine; 45 class WebThemeEngine;
46 class WebURLRequest; 46 class WebURLRequest;
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 163
163 // Returns true if the renderer process should schedule the idle handler when 164 // Returns true if the renderer process should schedule the idle handler when
164 // all widgets are hidden. 165 // all widgets are hidden.
165 virtual bool RunIdleHandlerWhenWidgetsHidden(); 166 virtual bool RunIdleHandlerWhenWidgetsHidden();
166 167
167 // Returns true if a popup window should be allowed. 168 // Returns true if a popup window should be allowed.
168 virtual bool AllowPopup(); 169 virtual bool AllowPopup();
169 170
170 // Returns true if the navigation was handled by the embedder and should be 171 // Returns true if the navigation was handled by the embedder and should be
171 // ignored by WebKit. This method is used by CEF. 172 // ignored by WebKit. This method is used by CEF.
172 virtual bool HandleNavigation(WebKit::WebFrame* frame, 173 virtual bool HandleNavigation(RenderView* view,
174 DocumentState* document_state,
175 WebKit::WebFrame* frame,
173 const WebKit::WebURLRequest& request, 176 const WebKit::WebURLRequest& request,
174 WebKit::WebNavigationType type, 177 WebKit::WebNavigationType type,
175 WebKit::WebNavigationPolicy default_policy, 178 WebKit::WebNavigationPolicy default_policy,
176 bool is_redirect); 179 bool is_redirect);
177 180
178 // Returns true if we should fork a new process for the given navigation. 181 // Returns true if we should fork a new process for the given navigation.
179 virtual bool ShouldFork(WebKit::WebFrame* frame, 182 virtual bool ShouldFork(WebKit::WebFrame* frame,
180 const GURL& url, 183 const GURL& url,
181 const std::string& http_method, 184 const std::string& http_method,
182 bool is_initial_navigation, 185 bool is_initial_navigation,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 262
260 // Returns true if we should apply the cross-site document blocking policy to 263 // Returns true if we should apply the cross-site document blocking policy to
261 // this renderer process. Currently, we apply the policy only to a renderer 264 // this renderer process. Currently, we apply the policy only to a renderer
262 // process running on a normal page from the web. 265 // process running on a normal page from the web.
263 virtual bool ShouldEnableSiteIsolationPolicy() const; 266 virtual bool ShouldEnableSiteIsolationPolicy() const;
264 }; 267 };
265 268
266 } // namespace content 269 } // namespace content
267 270
268 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 271 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698