Chromium Code Reviews
Help | Chromium Project | Sign in
(529)

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

Issue 11293157: Add a new ContentRendererClient::HandleNavigation callback in RenderViewImpl::decidePolicyForNaviga… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
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 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "ipc/ipc_message.h" 12 #include "ipc/ipc_message.h"
13 #include "content/public/common/content_client.h" 13 #include "content/public/common/content_client.h"
14 #include "content/public/common/page_transition_types.h" 14 #include "content/public/common/page_transition_types.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h "
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
16 #include "v8/include/v8.h" 18 #include "v8/include/v8.h"
17 19
18 class FilePath; 20 class FilePath;
19 class GURL; 21 class GURL;
20 class SkBitmap; 22 class SkBitmap;
21 23
22 namespace WebKit { 24 namespace WebKit {
23 class WebAudioSourceProvider; 25 class WebAudioSourceProvider;
24 class WebFrame; 26 class WebFrame;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 webkit_media::MediaStreamClient* media_stream_client, 125 webkit_media::MediaStreamClient* media_stream_client,
124 media::MediaLog* media_log); 126 media::MediaLog* media_log);
125 127
126 // Returns true if the renderer process should schedule the idle handler when 128 // Returns true if the renderer process should schedule the idle handler when
127 // all widgets are hidden. 129 // all widgets are hidden.
128 virtual bool RunIdleHandlerWhenWidgetsHidden(); 130 virtual bool RunIdleHandlerWhenWidgetsHidden();
129 131
130 // Returns true if the given url can create popup windows. 132 // Returns true if the given url can create popup windows.
131 virtual bool AllowPopup(const GURL& creator); 133 virtual bool AllowPopup(const GURL& creator);
132 134
135 // Returns true if the navigation was handled and should be ignored by WebKit.
Charlie Reis 2012/11/08 19:24:51 nit: was handled by the embedder
Marshall 2012/11/08 19:32:36 Done.
136 virtual bool HandleNavigation(WebKit::WebFrame* frame,
Charlie Reis 2012/11/08 19:24:51 John, maybe this should be DidHandleNavigation? T
Marshall 2012/11/08 19:32:36 I'm OK with whatever name is preferred.
jam 2012/11/08 21:10:07 I think the "Did" prefix would be applicable when
137 const WebKit::WebURLRequest& request,
138 WebKit::WebNavigationType type,
139 WebKit::WebNavigationPolicy default_policy,
140 bool is_redirect);
141
133 // Returns true if we should fork a new process for the given navigation. 142 // Returns true if we should fork a new process for the given navigation.
134 virtual bool ShouldFork(WebKit::WebFrame* frame, 143 virtual bool ShouldFork(WebKit::WebFrame* frame,
135 const GURL& url, 144 const GURL& url,
136 bool is_initial_navigation, 145 bool is_initial_navigation,
137 bool* send_referrer); 146 bool* send_referrer);
138 147
139 // Notifies the embedder that the given frame is requesting the resource at 148 // Notifies the embedder that the given frame is requesting the resource at
140 // |url|. If the function returns true, the url is changed to |new_url|. 149 // |url|. If the function returns true, the url is changed to |new_url|.
141 virtual bool WillSendRequest(WebKit::WebFrame* frame, 150 virtual bool WillSendRequest(WebKit::WebFrame* frame,
142 PageTransition transition_type, 151 PageTransition transition_type,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const GURL& first_party_for_cookies, 188 const GURL& first_party_for_cookies,
180 const std::string& value); 189 const std::string& value);
181 190
182 virtual void RegisterPPAPIInterfaceFactories( 191 virtual void RegisterPPAPIInterfaceFactories(
183 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} 192 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {}
184 }; 193 };
185 194
186 } // namespace content 195 } // namespace content
187 196
188 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 197 #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
RSS Feeds Recent Issues | This issue
This is Rietveld 1280:2d3e6564b7b6