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

Side by Side Diff: chrome/browser/android/chrome_web_contents_delegate_android.h

Issue 13649009: Android: Use a ResourceThrottle to intercept GET downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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 "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 int number_of_matches, 47 int number_of_matches,
48 const gfx::Rect& selection_rect, 48 const gfx::Rect& selection_rect,
49 int active_match_ordinal, 49 int active_match_ordinal,
50 bool final_update) OVERRIDE; 50 bool final_update) OVERRIDE;
51 virtual void FindMatchRectsReply(content::WebContents* web_contents, 51 virtual void FindMatchRectsReply(content::WebContents* web_contents,
52 int version, 52 int version,
53 const std::vector<gfx::RectF>& rects, 53 const std::vector<gfx::RectF>& rects,
54 const gfx::RectF& active_rect) OVERRIDE; 54 const gfx::RectF& active_rect) OVERRIDE;
55 virtual content::JavaScriptDialogManager* 55 virtual content::JavaScriptDialogManager*
56 GetJavaScriptDialogManager() OVERRIDE; 56 GetJavaScriptDialogManager() OVERRIDE;
57 virtual void CanDownload(content::RenderViewHost* source,
58 int request_id,
59 const std::string& request_method,
60 const base::Callback<void(bool)>& callback) OVERRIDE;
61 virtual void DidNavigateToPendingEntry(content::WebContents* source) OVERRIDE; 57 virtual void DidNavigateToPendingEntry(content::WebContents* source) OVERRIDE;
62 virtual void DidNavigateMainFramePostCommit( 58 virtual void DidNavigateMainFramePostCommit(
63 content::WebContents* source) OVERRIDE; 59 content::WebContents* source) OVERRIDE;
64 virtual void RequestMediaAccessPermission( 60 virtual void RequestMediaAccessPermission(
65 content::WebContents* web_contents, 61 content::WebContents* web_contents,
66 const content::MediaStreamRequest& request, 62 const content::MediaStreamRequest& request,
67 const content::MediaResponseCallback& callback) OVERRIDE; 63 const content::MediaResponseCallback& callback) OVERRIDE;
68 virtual bool RequestPpapiBrokerPermission( 64 virtual bool RequestPpapiBrokerPermission(
69 content::WebContents* web_contents, 65 content::WebContents* web_contents,
70 const GURL& url, 66 const GURL& url,
(...skipping 14 matching lines...) Expand all
85 base::TimeTicks navigation_start_time_; 81 base::TimeTicks navigation_start_time_;
86 }; 82 };
87 83
88 // Register the native methods through JNI. 84 // Register the native methods through JNI.
89 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); 85 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env);
90 86
91 } // namespace android 87 } // namespace android
92 } // namespace chrome 88 } // namespace chrome
93 89
94 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 90 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698