OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ |
6 #define CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 10 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Overridden from WebContentsDelegate. | 34 // Overridden from WebContentsDelegate. |
35 void AddNewContents(content::WebContents* source, | 35 void AddNewContents(content::WebContents* source, |
36 content::WebContents* new_contents, | 36 content::WebContents* new_contents, |
37 WindowOpenDisposition disposition, | 37 WindowOpenDisposition disposition, |
38 const gfx::Rect& initial_pos, | 38 const gfx::Rect& initial_pos, |
39 bool user_gesture, | 39 bool user_gesture, |
40 bool* was_blocked) override; | 40 bool* was_blocked) override; |
41 void CloseContents(content::WebContents* source) override; | 41 void CloseContents(content::WebContents* source) override; |
42 bool ShouldCreateWebContents( | 42 bool ShouldCreateWebContents( |
43 content::WebContents* web_contents, | 43 content::WebContents* web_contents, |
| 44 content::RenderFrameHost* opener, |
44 content::SiteInstance* source_site_instance, | 45 content::SiteInstance* source_site_instance, |
45 int32_t route_id, | 46 int32_t route_id, |
46 int32_t main_frame_route_id, | 47 int32_t main_frame_route_id, |
47 int32_t main_frame_widget_route_id, | 48 int32_t main_frame_widget_route_id, |
48 content::mojom::WindowContainerType window_container_type, | 49 content::mojom::WindowContainerType window_container_type, |
49 const GURL& opener_url, | 50 const GURL& opener_url, |
50 const std::string& frame_name, | 51 const std::string& frame_name, |
51 const GURL& target_url, | 52 const GURL& target_url, |
52 const std::string& partition_id, | 53 const std::string& partition_id, |
53 content::SessionStorageNamespace* session_storage_namespace) override; | 54 content::SessionStorageNamespace* session_storage_namespace) override; |
54 }; | 55 }; |
55 | 56 |
56 #endif // CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ | 57 #endif // CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |