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

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

Issue 10946008: Componentize IgnoreNavigationResourceThrottle and add chrome and webview specific implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "chrome/browser/component/web_contents_delegate_android/web_contents_de legate_android.h" 10 #include "chrome/browser/component/web_contents_delegate_android/web_contents_de legate_android.h"
11 11
12 class GURL;
13
12 namespace android_webview { 14 namespace android_webview {
13 15
14 // WebView specific WebContentsDelegate. 16 // WebView specific WebContentsDelegate.
15 // Should contain WebContentsDelegate code required by WebView that should not 17 // Should contain WebContentsDelegate code required by WebView that should not
16 // be part of the Chromium Android port. 18 // be part of the Chromium Android port.
17 class AwWebContentsDelegate 19 class AwWebContentsDelegate
18 : public web_contents_delegate_android::WebContentsDelegateAndroid { 20 : public web_contents_delegate_android::WebContentsDelegateAndroid {
19 public: 21 public:
20 AwWebContentsDelegate(JNIEnv* env, jobject obj); 22 AwWebContentsDelegate(JNIEnv* env, jobject obj);
21 virtual ~AwWebContentsDelegate(); 23 virtual ~AwWebContentsDelegate();
24
25 bool ShouldIgnoreNavigation(const GURL& url);
22 }; 26 };
23 27
28 bool RegisterAwWebContentsDelegate(JNIEnv* env);
29
24 } // namespace android_webview 30 } // namespace android_webview
25 31
26 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 32 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698