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

Side by Side Diff: components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 2882513005: Propagate opener to BackgroundsContents. (Closed)
Patch Set: Tweaked the comment in DriveWebContentsManager::ShouldCreateWebContents 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 #include "components/web_contents_delegate_android/web_contents_delegate_android .h" 5 #include "components/web_contents_delegate_android/web_contents_delegate_android .h"
6 6
7 #include <android/keycodes.h> 7 #include <android/keycodes.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void WebContentsDelegateAndroid::RendererResponsive(WebContents* source) { 178 void WebContentsDelegateAndroid::RendererResponsive(WebContents* source) {
179 JNIEnv* env = AttachCurrentThread(); 179 JNIEnv* env = AttachCurrentThread();
180 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); 180 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
181 if (obj.is_null()) 181 if (obj.is_null())
182 return; 182 return;
183 Java_WebContentsDelegateAndroid_rendererResponsive(env, obj); 183 Java_WebContentsDelegateAndroid_rendererResponsive(env, obj);
184 } 184 }
185 185
186 bool WebContentsDelegateAndroid::ShouldCreateWebContents( 186 bool WebContentsDelegateAndroid::ShouldCreateWebContents(
187 content::WebContents* web_contents, 187 content::WebContents* web_contents,
188 content::RenderFrameHost* opener,
188 content::SiteInstance* source_site_instance, 189 content::SiteInstance* source_site_instance,
189 int32_t route_id, 190 int32_t route_id,
190 int32_t main_frame_route_id, 191 int32_t main_frame_route_id,
191 int32_t main_frame_widget_route_id, 192 int32_t main_frame_widget_route_id,
192 content::mojom::WindowContainerType window_container_type, 193 content::mojom::WindowContainerType window_container_type,
193 const GURL& opener_url, 194 const GURL& opener_url,
194 const std::string& frame_name, 195 const std::string& frame_name,
195 const GURL& target_url, 196 const GURL& target_url,
196 const std::string& partition_id, 197 const std::string& partition_id,
197 content::SessionStorageNamespace* session_storage_namespace) { 198 content::SessionStorageNamespace* session_storage_namespace) {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 validation_message_bubble_->SetPositionRelativeToAnchor( 414 validation_message_bubble_->SetPositionRelativeToAnchor(
414 rwhv->GetRenderWidgetHost(), anchor_in_root_view); 415 rwhv->GetRenderWidgetHost(), anchor_in_root_view);
415 } 416 }
416 } 417 }
417 418
418 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( 419 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools(
419 content::WebContents* web_contents) { 420 content::WebContents* web_contents) {
420 } 421 }
421 422
422 } // namespace web_contents_delegate_android 423 } // namespace web_contents_delegate_android
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698