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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 2894973002: Provide WebContents::CreateParams to tab helpers. (Closed)
Patch Set: rebase Created 3 years, 6 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_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/browser/bluetooth_chooser.h" 17 #include "content/public/browser/bluetooth_chooser.h"
18 #include "content/public/browser/invalidate_type.h" 18 #include "content/public/browser/invalidate_type.h"
19 #include "content/public/browser/web_contents.h"
19 #include "content/public/common/media_stream_request.h" 20 #include "content/public/common/media_stream_request.h"
20 #include "content/public/common/window_container_type.mojom.h" 21 #include "content/public/common/window_container_type.mojom.h"
21 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 22 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
22 #include "third_party/WebKit/public/platform/WebDragOperation.h" 23 #include "third_party/WebKit/public/platform/WebDragOperation.h"
23 #include "third_party/WebKit/public/platform/WebSecurityStyle.h" 24 #include "third_party/WebKit/public/platform/WebSecurityStyle.h"
24 #include "third_party/skia/include/core/SkColor.h" 25 #include "third_party/skia/include/core/SkColor.h"
25 #include "ui/base/window_open_disposition.h" 26 #include "ui/base/window_open_disposition.h"
26 #include "ui/gfx/geometry/rect_f.h" 27 #include "ui/gfx/geometry/rect_f.h"
27 #include "ui/gfx/native_widget_types.h" 28 #include "ui/gfx/native_widget_types.h"
28 29
29 #if defined(OS_ANDROID) 30 #if defined(OS_ANDROID)
30 #include "base/android/scoped_java_ref.h" 31 #include "base/android/scoped_java_ref.h"
31 #endif 32 #endif
32 33
33 class GURL; 34 class GURL;
34 35
35 namespace base { 36 namespace base {
36 class FilePath; 37 class FilePath;
37 class ListValue; 38 class ListValue;
38 } 39 }
39 40
40 namespace content { 41 namespace content {
41 class ColorChooser; 42 class ColorChooser;
42 class JavaScriptDialogManager; 43 class JavaScriptDialogManager;
43 class PageState; 44 class PageState;
44 class RenderFrameHost; 45 class RenderFrameHost;
45 class RenderWidgetHost; 46 class RenderWidgetHost;
46 class SessionStorageNamespace; 47 class SessionStorageNamespace;
47 class SiteInstance; 48 class SiteInstance;
48 class WebContents;
49 class WebContentsImpl; 49 class WebContentsImpl;
50 struct ColorSuggestion; 50 struct ColorSuggestion;
51 struct ContextMenuParams; 51 struct ContextMenuParams;
52 struct DropData; 52 struct DropData;
53 struct FileChooserParams; 53 struct FileChooserParams;
54 struct NativeWebKeyboardEvent; 54 struct NativeWebKeyboardEvent;
55 struct Referrer; 55 struct Referrer;
56 struct SecurityStyleExplanations; 56 struct SecurityStyleExplanations;
57 } // namespace content 57 } // namespace content
58 58
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 int32_t main_frame_widget_route_id, 324 int32_t main_frame_widget_route_id,
325 content::mojom::WindowContainerType window_container_type, 325 content::mojom::WindowContainerType window_container_type,
326 const GURL& opener_url, 326 const GURL& opener_url,
327 const std::string& frame_name, 327 const std::string& frame_name,
328 const GURL& target_url, 328 const GURL& target_url,
329 const std::string& partition_id, 329 const std::string& partition_id,
330 SessionStorageNamespace* session_storage_namespace); 330 SessionStorageNamespace* session_storage_namespace);
331 331
332 // Notifies the delegate about the creation of a new WebContents. This 332 // Notifies the delegate about the creation of a new WebContents. This
333 // typically happens when popups are created. 333 // typically happens when popups are created.
334 virtual void WebContentsCreated(WebContents* source_contents, 334 virtual void WebContentsCreated(
335 int opener_render_process_id, 335 WebContents* source_contents,
336 int opener_render_frame_id, 336 int opener_render_process_id,
337 const std::string& frame_name, 337 int opener_render_frame_id,
338 const GURL& target_url, 338 const std::string& frame_name,
339 WebContents* new_contents) {} 339 const GURL& target_url,
340 WebContents* new_contents,
341 const base::Optional<WebContents::CreateParams>& create_params) {}
340 342
341 // Notification that the tab is hung. 343 // Notification that the tab is hung.
342 virtual void RendererUnresponsive( 344 virtual void RendererUnresponsive(
343 WebContents* source, 345 WebContents* source,
344 const WebContentsUnresponsiveState& unresponsive_state) {} 346 const WebContentsUnresponsiveState& unresponsive_state) {}
345 347
346 // Notification that the tab is no longer hung. 348 // Notification that the tab is no longer hung.
347 virtual void RendererResponsive(WebContents* source) {} 349 virtual void RendererResponsive(WebContents* source) {}
348 350
349 // Invoked when a main fram navigation occurs. 351 // Invoked when a main fram navigation occurs.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 // Called when |this| is no longer the WebContentsDelegate for |source|. 577 // Called when |this| is no longer the WebContentsDelegate for |source|.
576 void Detach(WebContents* source); 578 void Detach(WebContents* source);
577 579
578 // The WebContents that this is currently a delegate for. 580 // The WebContents that this is currently a delegate for.
579 std::set<WebContents*> attached_contents_; 581 std::set<WebContents*> attached_contents_;
580 }; 582 };
581 583
582 } // namespace content 584 } // namespace content
583 585
584 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 586 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | extensions/browser/guest_view/web_view/web_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698