summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/chrome_url_constants.cc
blob: 027fc83f32d447a41225125c9c3ff41386fb4d06 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright 2012 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.

#include "ios/chrome/browser/chrome_url_constants.h"

#include "base/macros.h"

const char kChromeUIScheme[] = "chrome";

const char kChromeUIBookmarksURL[] = "chrome://bookmarks/";
const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/";
const char kChromeUICreditsURL[] = "chrome://credits/";
const char kChromeUIFlagsURL[] = "chrome://flags/";
const char kChromeUIHistoryURL[] = "chrome://history/";
const char kChromeUINewTabURL[] = "chrome://newtab/";
const char kChromeUISettingsURL[] = "chrome://settings/";
const char kChromeUITermsURL[] = "chrome://terms/";
const char kChromeUIVersionURL[] = "chrome://version/";

const char kChromeUIAppleFlagsHost[] = "ui-alternatives";
const char kChromeUIBookmarksHost[] = "bookmarks";
const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz";
const char kChromeUIChromeURLsHost[] = "chrome-urls";
const char kChromeUICrashesHost[] = "crashes";
const char kChromeUICreditsHost[] = "credits";
const char kChromeUIExternalFileHost[] = "external-file";
const char kChromeUIFlagsHost[] = "flags";
const char kChromeUIGCMInternalsHost[] = "gcm-internals";
const char kChromeUIHistogramHost[] = "histograms";
const char kChromeUIHistoryFrameHost[] = "history-frame";
const char kChromeUIHistoryHost[] = "history";
const char kChromeUINetExportHost[] = "net-export";
const char kChromeUINewTabHost[] = "newtab";
const char kChromeUIOmahaHost[] = "omaha";
const char kChromeUIPolicyHost[] = "policy";
const char kChromeUISignInInternalsHost[] = "signin-internals";
const char kChromeUISyncInternalsHost[] = "sync-internals";
const char kChromeUITermsHost[] = "terms";
const char kChromeUIVersionHost[] = "version";

// Add hosts here to be included in chrome://chrome-urls (about:about).
// These hosts will also be suggested by BuiltinProvider.
// 'histograms' is chrome WebUI on iOS, content WebUI on other platforms.
const char* const kChromeHostURLs[] = {
    kChromeUIBookmarksHost, kChromeUIChromeURLsHost, kChromeUICreditsHost,
    kChromeUIFlagsHost,     kChromeUIHistogramHost,  kChromeUIHistoryHost,
    kChromeUINetExportHost, kChromeUINewTabHost,     kChromeUISyncInternalsHost,
    kChromeUITermsHost,     kChromeUIVersionHost,
};
const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs);

const char kSyncGoogleDashboardURL[] =
    "https://www.google.com/settings/chrome/sync/";

const char kPasswordManagerAccountDashboardURL[] =
    "https://passwords.google.com/settings/passwords";

const char kPageInfoHelpCenterURL[] =
    "https://support.google.com/chrome/?p=ui_security_indicator";

const char kCrashReasonURL[] = "https://support.google.com/chrome/?p=e_awsnap";

const char kPrivacyLearnMoreURL[] =
    "https://support.google.com/chrome/answer/114836?p=settings_privacy";

const char kDoNotTrackLearnMoreURL[] =
    "https://support.google.com/chrome/answer/2942429?p=mobile_do_not_track";

const char kSyncEncryptionHelpURL[] =
    "https://support.google.com/chrome/answer/1181035?p=settings_encryption";