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

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 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 by the embedder and should be
136 // ignored by WebKit.
137 virtual bool HandleNavigation(WebKit::WebFrame* frame,
darin (slow to review) 2012/11/09 00:30:24 One question: How do Chromium developers know not
jam 2012/11/09 00:32:37 hmm, good question. how do you handle this for Web
138 const WebKit::WebURLRequest& request,
139 WebKit::WebNavigationType type,
140 WebKit::WebNavigationPolicy default_policy,
141 bool is_redirect);
142
133 // Returns true if we should fork a new process for the given navigation. 143 // Returns true if we should fork a new process for the given navigation.
134 virtual bool ShouldFork(WebKit::WebFrame* frame, 144 virtual bool ShouldFork(WebKit::WebFrame* frame,
135 const GURL& url, 145 const GURL& url,
136 bool is_initial_navigation, 146 bool is_initial_navigation,
137 bool* send_referrer); 147 bool* send_referrer);
138 148
139 // Notifies the embedder that the given frame is requesting the resource at 149 // 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|. 150 // |url|. If the function returns true, the url is changed to |new_url|.
141 virtual bool WillSendRequest(WebKit::WebFrame* frame, 151 virtual bool WillSendRequest(WebKit::WebFrame* frame,
142 PageTransition transition_type, 152 PageTransition transition_type,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const GURL& first_party_for_cookies, 189 const GURL& first_party_for_cookies,
180 const std::string& value); 190 const std::string& value);
181 191
182 virtual void RegisterPPAPIInterfaceFactories( 192 virtual void RegisterPPAPIInterfaceFactories(
183 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} 193 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {}
184 }; 194 };
185 195
186 } // namespace content 196 } // namespace content
187 197
188 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 198 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698