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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 2833923002: WebView: carefully check size for SafeBrowsing interstitial (Closed)
Patch Set: Also check if attached, add @VisibleForTesting Created 3 years, 8 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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // content::WebContentsObserver overrides 357 // content::WebContentsObserver overrides
358 void RenderViewHostChanged(content::RenderViewHost* old_host, 358 void RenderViewHostChanged(content::RenderViewHost* old_host,
359 content::RenderViewHost* new_host) override; 359 content::RenderViewHost* new_host) override;
360 void DidAttachInterstitialPage() override; 360 void DidAttachInterstitialPage() override;
361 void DidDetachInterstitialPage() override; 361 void DidDetachInterstitialPage() override;
362 362
363 // content::RenderProcessHostObserver overrides 363 // content::RenderProcessHostObserver overrides
364 void RenderProcessReady(content::RenderProcessHost* host) override; 364 void RenderProcessReady(content::RenderProcessHost* host) override;
365 365
366 // AwSafeBrowsingUIManager::UIManagerClient implementation 366 // AwSafeBrowsingUIManager::UIManagerClient implementation
367 bool CanShowInterstitial() override; 367 bool CanShowBigInterstitial() override;
368 368
369 void CallProceedOnInterstitialForTesting( 369 void CallProceedOnInterstitialForTesting(
370 JNIEnv* env, 370 JNIEnv* env,
371 const base::android::JavaParamRef<jobject>& obj); 371 const base::android::JavaParamRef<jobject>& obj);
372 void CallDontProceedOnInterstitialForTesting( 372 void CallDontProceedOnInterstitialForTesting(
373 JNIEnv* env, 373 JNIEnv* env,
374 const base::android::JavaParamRef<jobject>& obj); 374 const base::android::JavaParamRef<jobject>& obj);
375 375
376 // AwRenderProcessGoneDelegate overrides 376 // AwRenderProcessGoneDelegate overrides
377 void OnRenderProcessGone(int child_process_id) override; 377 void OnRenderProcessGone(int child_process_id) override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 bool renderer_priority_waived_when_not_visible_; 420 bool renderer_priority_waived_when_not_visible_;
421 421
422 DISALLOW_COPY_AND_ASSIGN(AwContents); 422 DISALLOW_COPY_AND_ASSIGN(AwContents);
423 }; 423 };
424 424
425 bool RegisterAwContents(JNIEnv* env); 425 bool RegisterAwContents(JNIEnv* env);
426 426
427 } // namespace android_webview 427 } // namespace android_webview
428 428
429 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 429 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698