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

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

Issue 2410043003: Add a console messsage for HTTP-bad (Closed)
Patch Set: de-const other WebContentsDelegates Created 4 years, 2 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void WebContentsDelegateAndroid::NavigationStateChanged( 123 void WebContentsDelegateAndroid::NavigationStateChanged(
124 WebContents* source, content::InvalidateTypes changed_flags) { 124 WebContents* source, content::InvalidateTypes changed_flags) {
125 JNIEnv* env = AttachCurrentThread(); 125 JNIEnv* env = AttachCurrentThread();
126 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); 126 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
127 if (obj.is_null()) 127 if (obj.is_null())
128 return; 128 return;
129 Java_WebContentsDelegateAndroid_navigationStateChanged(env, obj, 129 Java_WebContentsDelegateAndroid_navigationStateChanged(env, obj,
130 changed_flags); 130 changed_flags);
131 } 131 }
132 132
133 void WebContentsDelegateAndroid::VisibleSSLStateChanged( 133 void WebContentsDelegateAndroid::VisibleSSLStateChanged(WebContents* source) {
134 const WebContents* source) {
135 JNIEnv* env = AttachCurrentThread(); 134 JNIEnv* env = AttachCurrentThread();
136 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); 135 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
137 if (obj.is_null()) 136 if (obj.is_null())
138 return; 137 return;
139 Java_WebContentsDelegateAndroid_visibleSSLStateChanged(env, obj); 138 Java_WebContentsDelegateAndroid_visibleSSLStateChanged(env, obj);
140 } 139 }
141 140
142 void WebContentsDelegateAndroid::ActivateContents(WebContents* contents) { 141 void WebContentsDelegateAndroid::ActivateContents(WebContents* contents) {
143 JNIEnv* env = AttachCurrentThread(); 142 JNIEnv* env = AttachCurrentThread();
144 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); 143 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 validation_message_bubble_->SetPositionRelativeToAnchor( 407 validation_message_bubble_->SetPositionRelativeToAnchor(
409 rwhv->GetRenderWidgetHost(), anchor_in_root_view); 408 rwhv->GetRenderWidgetHost(), anchor_in_root_view);
410 } 409 }
411 } 410 }
412 411
413 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( 412 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools(
414 content::WebContents* web_contents) { 413 content::WebContents* web_contents) {
415 } 414 }
416 415
417 } // namespace web_contents_delegate_android 416 } // namespace web_contents_delegate_android
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698