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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java

Issue 2026953002: Disable external navigation for file downloads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 package org.chromium.chrome.browser.externalnav; 5 package org.chromium.chrome.browser.externalnav;
6 6
7 import android.content.Intent; 7 import android.content.Intent;
8 import android.content.pm.ResolveInfo; 8 import android.content.pm.ResolveInfo;
9 9
10 import org.chromium.chrome.browser.externalnav.ExternalNavigationHandler.Overrid eUrlLoadingResult; 10 import org.chromium.chrome.browser.externalnav.ExternalNavigationHandler.Overrid eUrlLoadingResult;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 /** 101 /**
102 * Check if Chrome is running in document mode. 102 * Check if Chrome is running in document mode.
103 */ 103 */
104 boolean isDocumentMode(); 104 boolean isDocumentMode();
105 105
106 /** 106 /**
107 * @return Default SMS application's package name. Null if there isn't any. 107 * @return Default SMS application's package name. Null if there isn't any.
108 */ 108 */
109 String getDefaultSmsPackageName(); 109 String getDefaultSmsPackageName();
110
111 /**
112 * @return Whether the URL is a file download.
113 */
114 boolean isPdfDownload(String url);
110 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698