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

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

Issue 2454393003: Reland of Trigger Dangerous indicator for unsafe subresources (Closed)
Patch Set: Created 4 years, 1 month 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void WebContentsDelegateAndroid::NavigationStateChanged( 124 void WebContentsDelegateAndroid::NavigationStateChanged(
125 WebContents* source, content::InvalidateTypes changed_flags) { 125 WebContents* source, content::InvalidateTypes changed_flags) {
126 JNIEnv* env = AttachCurrentThread(); 126 JNIEnv* env = AttachCurrentThread();
127 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); 127 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
128 if (obj.is_null()) 128 if (obj.is_null())
129 return; 129 return;
130 Java_WebContentsDelegateAndroid_navigationStateChanged(env, obj, 130 Java_WebContentsDelegateAndroid_navigationStateChanged(env, obj,
131 changed_flags); 131 changed_flags);
132 } 132 }
133 133
134 void WebContentsDelegateAndroid::VisibleSSLStateChanged(WebContents* source) { 134 void WebContentsDelegateAndroid::VisibleSecurityStateChanged(
135 WebContents* source) {
135 JNIEnv* env = AttachCurrentThread(); 136 JNIEnv* env = AttachCurrentThread();
136 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); 137 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
137 if (obj.is_null()) 138 if (obj.is_null())
138 return; 139 return;
139 Java_WebContentsDelegateAndroid_visibleSSLStateChanged(env, obj); 140 Java_WebContentsDelegateAndroid_visibleSSLStateChanged(env, obj);
140 } 141 }
141 142
142 void WebContentsDelegateAndroid::ActivateContents(WebContents* contents) { 143 void WebContentsDelegateAndroid::ActivateContents(WebContents* contents) {
143 JNIEnv* env = AttachCurrentThread(); 144 JNIEnv* env = AttachCurrentThread();
144 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); 145 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 validation_message_bubble_->SetPositionRelativeToAnchor( 411 validation_message_bubble_->SetPositionRelativeToAnchor(
411 rwhv->GetRenderWidgetHost(), anchor_in_root_view); 412 rwhv->GetRenderWidgetHost(), anchor_in_root_view);
412 } 413 }
413 } 414 }
414 415
415 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( 416 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools(
416 content::WebContents* web_contents) { 417 content::WebContents* web_contents) {
417 } 418 }
418 419
419 } // namespace web_contents_delegate_android 420 } // namespace web_contents_delegate_android
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698