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

Side by Side Diff: content/browser/android/web_contents_observer_android.cc

Issue 302653006: Remove use of ResourceRequestInfo::GetRequestID from cert enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again. Created 6 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 | Annotate | Revision Log
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 "content/browser/android/web_contents_observer_android.h" 5 #include "content/browser/android/web_contents_observer_android.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include <jni.h> 9 #include <jni.h>
10 10
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 void WebContentsObserverAndroid::NavigationEntryCommitted( 230 void WebContentsObserverAndroid::NavigationEntryCommitted(
231 const LoadCommittedDetails& load_details) { 231 const LoadCommittedDetails& load_details) {
232 JNIEnv* env = AttachCurrentThread(); 232 JNIEnv* env = AttachCurrentThread();
233 ScopedJavaLocalRef<jobject> obj(weak_java_observer_.get(env)); 233 ScopedJavaLocalRef<jobject> obj(weak_java_observer_.get(env));
234 if (obj.is_null()) 234 if (obj.is_null())
235 return; 235 return;
236 Java_WebContentsObserverAndroid_navigationEntryCommitted(env, obj.obj()); 236 Java_WebContentsObserverAndroid_navigationEntryCommitted(env, obj.obj());
237 } 237 }
238 238
239 void WebContentsObserverAndroid::DidChangeVisibleSSLState() {
240 JNIEnv* env = AttachCurrentThread();
241 ScopedJavaLocalRef<jobject> obj(weak_java_observer_.get(env));
242 if (obj.is_null())
243 return;
244 Java_WebContentsObserverAndroid_didChangeVisibleSSLState(env, obj.obj());
245 }
246
247 void WebContentsObserverAndroid::DidAttachInterstitialPage() { 239 void WebContentsObserverAndroid::DidAttachInterstitialPage() {
248 JNIEnv* env = AttachCurrentThread(); 240 JNIEnv* env = AttachCurrentThread();
249 ScopedJavaLocalRef<jobject> obj(weak_java_observer_.get(env)); 241 ScopedJavaLocalRef<jobject> obj(weak_java_observer_.get(env));
250 if (obj.is_null()) 242 if (obj.is_null())
251 return; 243 return;
252 Java_WebContentsObserverAndroid_didAttachInterstitialPage(env, obj.obj()); 244 Java_WebContentsObserverAndroid_didAttachInterstitialPage(env, obj.obj());
253 } 245 }
254 246
255 void WebContentsObserverAndroid::DidDetachInterstitialPage() { 247 void WebContentsObserverAndroid::DidDetachInterstitialPage() {
256 JNIEnv* env = AttachCurrentThread(); 248 JNIEnv* env = AttachCurrentThread();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 if (obj.is_null()) 281 if (obj.is_null())
290 return; 282 return;
291 Java_WebContentsObserverAndroid_didFirstVisuallyNonEmptyPaint( 283 Java_WebContentsObserverAndroid_didFirstVisuallyNonEmptyPaint(
292 env, obj.obj()); 284 env, obj.obj());
293 } 285 }
294 286
295 bool RegisterWebContentsObserverAndroid(JNIEnv* env) { 287 bool RegisterWebContentsObserverAndroid(JNIEnv* env) {
296 return RegisterNativesImpl(env); 288 return RegisterNativesImpl(env);
297 } 289 }
298 } // namespace content 290 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/web_contents_observer_android.h ('k') | content/browser/loader/certificate_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698