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

Side by Side Diff: chrome/browser/android/chrome_web_contents_delegate_android.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 CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_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 #include "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 13
14 class FindNotificationDetails; 14 class FindNotificationDetails;
15 class GURL;
15 16
16 namespace content { 17 namespace content {
17 struct FileChooserParams; 18 struct FileChooserParams;
18 class WebContents; 19 class WebContents;
19 } 20 }
20 21
21 namespace gfx { 22 namespace gfx {
22 class Rect; 23 class Rect;
23 class RectF; 24 class RectF;
24 } 25 }
(...skipping 18 matching lines...) Expand all
43 virtual void FindReply(content::WebContents* web_contents, 44 virtual void FindReply(content::WebContents* web_contents,
44 int request_id, 45 int request_id,
45 int number_of_matches, 46 int number_of_matches,
46 const gfx::Rect& selection_rect, 47 const gfx::Rect& selection_rect,
47 int active_match_ordinal, 48 int active_match_ordinal,
48 bool final_update) OVERRIDE; 49 bool final_update) OVERRIDE;
49 virtual void FindMatchRectsReply(content::WebContents* web_contents, 50 virtual void FindMatchRectsReply(content::WebContents* web_contents,
50 int version, 51 int version,
51 const std::vector<gfx::RectF>& rects, 52 const std::vector<gfx::RectF>& rects,
52 const gfx::RectF& active_rect) OVERRIDE; 53 const gfx::RectF& active_rect) OVERRIDE;
54 virtual bool ShouldIgnoreNavigation(const GURL& url,
55 bool is_content_initiated);
53 56
54 private: 57 private:
55 // NotificationObserver implementation. 58 // NotificationObserver implementation.
56 virtual void Observe(int type, 59 virtual void Observe(int type,
57 const content::NotificationSource& source, 60 const content::NotificationSource& source,
58 const content::NotificationDetails& details) OVERRIDE; 61 const content::NotificationDetails& details) OVERRIDE;
59 62
60 void OnFindResultAvailable(content::WebContents* web_contents, 63 void OnFindResultAvailable(content::WebContents* web_contents,
61 const FindNotificationDetails* find_result); 64 const FindNotificationDetails* find_result);
62 65
63 content::NotificationRegistrar notification_registrar_; 66 content::NotificationRegistrar notification_registrar_;
64 }; 67 };
65 68
66 // Register the native methods through JNI. 69 // Register the native methods through JNI.
67 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); 70 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env);
68 71
69 } // namespace android 72 } // namespace android
70 } // namespace chrome 73 } // namespace chrome
71 74
72 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 75 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698