summaryrefslogtreecommitdiffstats
path: root/chrome/browser/android/new_tab_page_url_handler.h
blob: accea15926ef322a16634651101fe3f88d2eb81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_URL_HANDLER_H_
#define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_URL_HANDLER_H_

class GURL;

namespace content {
class BrowserContext;
}

namespace chrome {
namespace android {

// Rewrites old-style Android NTP URLs and legacy bookmark URLs.
//  - chrome://newtab              -> chrome-native://newtab
//  - chrome-native://bookmarks/#  -> chrome-native://bookmarks/folder/
bool HandleAndroidNativePageURL(GURL* url,
                                content::BrowserContext* browser_context);

}  // namespace android
}  // namespace chrome

#endif  // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_URL_HANDLER_H_