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 #include "chrome/browser/android/document/document_web_contents_delegate.h" | 5 #include "chrome/browser/android/document/document_web_contents_delegate.h" |
6 | 6 |
7 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 7 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
9 #include "jni/DocumentWebContentsDelegate_jni.h" | 9 #include "jni/DocumentWebContentsDelegate_jni.h" |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 bool* was_blocked) { | 40 bool* was_blocked) { |
41 NOTREACHED(); | 41 NOTREACHED(); |
42 } | 42 } |
43 | 43 |
44 void DocumentWebContentsDelegate::CloseContents(content::WebContents* source) { | 44 void DocumentWebContentsDelegate::CloseContents(content::WebContents* source) { |
45 NOTREACHED(); | 45 NOTREACHED(); |
46 } | 46 } |
47 | 47 |
48 bool DocumentWebContentsDelegate::ShouldCreateWebContents( | 48 bool DocumentWebContentsDelegate::ShouldCreateWebContents( |
49 content::WebContents* web_contents, | 49 content::WebContents* web_contents, |
| 50 content::RenderFrameHost* opener, |
50 content::SiteInstance* source_site_instance, | 51 content::SiteInstance* source_site_instance, |
51 int32_t route_id, | 52 int32_t route_id, |
52 int32_t main_frame_route_id, | 53 int32_t main_frame_route_id, |
53 int32_t main_frame_widget_route_id, | 54 int32_t main_frame_widget_route_id, |
54 content::mojom::WindowContainerType window_container_type, | 55 content::mojom::WindowContainerType window_container_type, |
55 const GURL& opener_url, | 56 const GURL& opener_url, |
56 const std::string& frame_name, | 57 const std::string& frame_name, |
57 const GURL& target_url, | 58 const GURL& target_url, |
58 const std::string& partition_id, | 59 const std::string& partition_id, |
59 content::SessionStorageNamespace* session_storage_namespace) { | 60 content::SessionStorageNamespace* session_storage_namespace) { |
60 NOTREACHED(); | 61 NOTREACHED(); |
61 return false; | 62 return false; |
62 } | 63 } |
63 | 64 |
64 static jlong Initialize(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 65 static jlong Initialize(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
65 return reinterpret_cast<intptr_t>(new DocumentWebContentsDelegate(env, obj)); | 66 return reinterpret_cast<intptr_t>(new DocumentWebContentsDelegate(env, obj)); |
66 } | 67 } |
OLD | NEW |