Home | History | Annotate | Download | only in browser

Lines Matching refs:url

148              * 2) If the URL is already opened, switch to that tab
173 // with a matching url.
183 // if FLAG_ACTIVITY_BROUGHT_TO_FRONT flag is on, the url
185 // MAX_TABS. Then the url will be opened in the current
228 String url = "";
237 url = UrlUtils.smartUrlFilter(intent.getData());
238 if (url != null && url.startsWith("http")) {
259 url = intent.getStringExtra(SearchManager.QUERY);
260 if (url != null) {
261 // In general, we shouldn't modify URL from Intent.
262 // But currently, we get the user-typed URL from search box as well.
263 url = UrlUtils.fixUrl(url);
264 url = UrlUtils.smartUrlFilter(url);
266 if (url.contains(searchSource)) {
275 url = url.replace(searchSource, "&source=android-"+source+"&");
280 return new UrlData(url, headers, intent, preloaded, preloadedSearchBoxQuery);
292 String url = null;
300 if (data != null) url = data.toString();
304 url = intent.getStringExtra(SearchManager.QUERY);
306 return handleWebSearchRequest(activity, controller, url,
312 * Launches the default web search activity with the query parameters if the given url string
313 * was identified as plain search terms and not URL/shortcut.
321 // In general, we shouldn't modify URL from Intent.
322 // But currently, we get the user-typed URL from search box as well.
323 String url = UrlUtils.fixUrl(inUrl).trim();
324 if (TextUtils.isEmpty(url)) return false;
328 if (Patterns.WEB_URL.matcher(url).matches()
329 || UrlUtils.ACCEPTED_URI_SCHEMA.matcher(url).matches()) {
334 final String newUrl = url;
350 searchEngine.startSearch(activity, url, appData, extraData);
366 UrlData(String url) {
367 this.mUrl = url;
374 UrlData(String url, Map<String, String> headers, Intent intent) {
375 this(url, headers, intent, null, null);
378 UrlData(String url, Map<String, String> headers, Intent intent,
380 this.mUrl = url;