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

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

Issue 2655143002: Drop replacesCurrentHistoryItem, NavigationType (Closed)
Patch Set: More compile fixes Created 3 years, 10 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "base/task_scheduler/task_scheduler.h" 18 #include "base/task_scheduler/task_scheduler.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
22 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 22 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
23 #include "third_party/WebKit/public/web/WebNavigationType.h"
24 #include "ui/base/page_transition_types.h" 23 #include "ui/base/page_transition_types.h"
25 #include "v8/include/v8.h" 24 #include "v8/include/v8.h"
26 25
27 class GURL; 26 class GURL;
28 class SkBitmap; 27 class SkBitmap;
29 28
30 namespace base { 29 namespace base {
31 class FilePath; 30 class FilePath;
32 class SchedulerWorkerPoolParams; 31 class SchedulerWorkerPoolParams;
33 } 32 }
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // as android webview completes implementation of a resource throttle based 202 // as android webview completes implementation of a resource throttle based
204 // shouldoverrideurl implementation. See crbug.com/325351 203 // shouldoverrideurl implementation. See crbug.com/325351
205 // 204 //
206 // Returns true if the navigation was handled by the embedder and should be 205 // Returns true if the navigation was handled by the embedder and should be
207 // ignored by WebKit. This method is used by CEF and android_webview. 206 // ignored by WebKit. This method is used by CEF and android_webview.
208 virtual bool HandleNavigation(RenderFrame* render_frame, 207 virtual bool HandleNavigation(RenderFrame* render_frame,
209 bool is_content_initiated, 208 bool is_content_initiated,
210 bool render_view_was_created_by_renderer, 209 bool render_view_was_created_by_renderer,
211 blink::WebFrame* frame, 210 blink::WebFrame* frame,
212 const blink::WebURLRequest& request, 211 const blink::WebURLRequest& request,
213 blink::WebNavigationType type, 212 bool is_back_forward,
214 blink::WebNavigationPolicy default_policy, 213 blink::WebNavigationPolicy default_policy,
215 bool is_redirect); 214 bool is_redirect);
216 215
217 // Indicates if the Android MediaPlayer should be used instead of Chrome's 216 // Indicates if the Android MediaPlayer should be used instead of Chrome's
218 // built in media player for the given |url|. Defaults to false. 217 // built in media player for the given |url|. Defaults to false.
219 virtual bool ShouldUseMediaPlayerForURL(const GURL& url); 218 virtual bool ShouldUseMediaPlayerForURL(const GURL& url);
220 #endif 219 #endif
221 220
222 // Returns true if we should fork a new process for the given navigation. 221 // Returns true if we should fork a new process for the given navigation.
223 // If |send_referrer| is set to false (which is the default), no referrer 222 // If |send_referrer| is set to false (which is the default), no referrer
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* 362 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
364 index_to_traits_callback) {} 363 index_to_traits_callback) {}
365 364
366 // Returns true if the media pipeline can be suspended, or false otherwise. 365 // Returns true if the media pipeline can be suspended, or false otherwise.
367 virtual bool AllowMediaSuspend(); 366 virtual bool AllowMediaSuspend();
368 }; 367 };
369 368
370 } // namespace content 369 } // namespace content
371 370
372 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 371 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698