Webview should only allow resources loading from the extension that embedded it.
[chromium-blink-merge.git] / chrome / common / extensions / extension_constants.cc
blob23a88dff654af7a171aa8dba00da3b1fef5b6606
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
3 // found in the LICENSE file.
5 #include "chrome/common/extensions/extension_constants.h"
7 namespace extension_urls {
9 namespace {
11 const char kGalleryUpdateHttpsUrl[] =
12 "https://clients2.google.com/service/update2/crx";
14 } // namespace
16 GURL GetDefaultWebstoreUpdateUrl() {
17 return GURL(kGalleryUpdateHttpsUrl);
20 const char kWebstoreSourceField[] = "utm_source";
22 const char kLaunchSourceAppList[] = "chrome-app-launcher";
23 const char kLaunchSourceAppListSearch[] = "chrome-app-launcher-search";
24 const char kLaunchSourceAppListInfoDialog[] = "chrome-app-launcher-info-dialog";
26 } // namespace extension_urls
28 namespace extension_misc {
30 const char kBookmarkManagerId[] = "eemcgdkfndhakfknompkggombfjjjeno";
31 const char kChromeAppId[] = "mgndgikekgjfcpckkfioiadnlibdjbkf";
32 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
33 const char kEasyUnlockAppId[] = "mkaemigholebcgchlkbankmihknojeak";
34 const char kEnterpriseWebStoreAppId[] = "afchcafgojfnemjkcbhfekplkmjaldaa";
35 const char kGmailAppId[] = "pjkljhegncpnkpknbcohdijeoejaedia";
36 const char kGoogleDocAppId[] = "aohghmighlieiainnegkcijnfilokake";
37 const char kGooglePlayMusicAppId[] = "icppfcnhkcmnfdhfhphakoifcfokfdhg";
38 const char kGoogleSearchAppId[] = "coobgpohoikkiipiblmjeljniedjpjpf";
39 const char kGoogleSheetsAppId[] = "felcaaldnbdncclmgdcncolpebgiejap";
40 const char kGoogleSlidesAppId[] = "aapocclcgogkmnckokdopfmhonfmgoek";
41 const char kHTermAppId[] = "pnhechapfaindjhompbnflcldabbghjo";
42 const char kHTermDevAppId[] = "okddffdblfhhnmhodogpojmfkjmhinfp";
43 const char kIdentityApiUiAppId[] = "ahjaciijnoiaklcomgnblndopackapon";
44 const char kCroshBuiltinAppId[] = "nkoccljplnhpfnfiajclkommnmllphnl";
45 const char kHotwordAudioVerificationAppId[] =
46 "abjokfonkihficiokmkfboogholifghn";
47 const char kHotwordNewExtensionId[] = "nbpagnldghgfoolbancepceaanlmhfmd";
48 const char kHotwordSharedModuleId[] = "lccekmodgklaepjeofjdjpbminllajkg";
49 const char kSettingsAppId[] = "ennkphjdgehloodpbhlhldgbnhmacadg";
50 const char kYoutubeAppId[] = "blpcfgokakmgnkcojhhkbfbldkacnbeo";
51 const char kInAppPaymentsSupportAppId[] = "nmmhkkegccagdldgiimedpiccmgmieda";
53 #if defined(OS_CHROMEOS)
54 // The extension id for the built-in component extension.
55 const char kChromeVoxExtensionId[] =
56 "mndnfokpggljbaajbnioimlmbfngpief";
57 const char kChromeVoxExtensionPath[] = "chromeos/chromevox";
58 const char kChromeVoxManifestFilename[] = "manifest.json";
59 const char kChromeVoxGuestManifestFilename[] = "manifest_guest.json";
60 const char kBrailleImeExtensionId[] =
61 "jddehjeebkoimngcbdkaahpobgicbffp";
62 const char kBrailleImeExtensionPath[] =
63 "chromeos/braille_ime";
64 const char kBrailleImeEngineId[] =
65 "_comp_ime_jddehjeebkoimngcbdkaahpobgicbffpbraille";
66 const char kConnectivityDiagnosticsPath[] =
67 "/usr/share/chromeos-assets/connectivity_diagnostics";
68 const char kConnectivityDiagnosticsKioskPath[] =
69 "/usr/share/chromeos-assets/connectivity_diagnostics_kiosk";
70 const char kConnectivityDiagnosticsLauncherPath[] =
71 "/usr/share/chromeos-assets/connectivity_diagnostics_launcher";
72 const char kSpeechSynthesisExtensionPath[] =
73 "/usr/share/chromeos-assets/speech_synthesis/patts";
74 const char kSpeechSynthesisExtensionId[] =
75 "gjjabgpgjpampikjhjpfhneeoapjbjaf";
76 const char kWallpaperManagerId[] = "obklkkbkpaoaejdabbfldmcfplpdgolj";
77 const char kFirstRunDialogId[] = "jdgcneonijmofocbhmijhacgchbihela";
78 const char kZIPUnpackerExtensionId[] = "oedeeodfidgoollimchfdnbmhcpnklnd";
79 #else
80 // The extension id for the web store extension.
81 const char kChromeVoxExtensionId[] =
82 "kgejglhpjiefppelpmljglcjbhoiplfn";
83 #endif
85 const char kAppStateNotInstalled[] = "not_installed";
86 const char kAppStateInstalled[] = "installed";
87 const char kAppStateDisabled[] = "disabled";
88 const char kAppStateRunning[] = "running";
89 const char kAppStateCannotRun[] = "cannot_run";
90 const char kAppStateReadyToRun[] = "ready_to_run";
92 const char kMediaFileSystemPathPart[] = "_";
94 const uint8 kWebstoreSignaturesPublicKey[] = {
95 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
96 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00,
97 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0x8f, 0xfb, 0xbf,
98 0x5c, 0x37, 0x63, 0x94, 0x3c, 0xb0, 0xee, 0x01, 0xc4, 0xb5, 0xa6, 0x9a,
99 0xb1, 0x9f, 0x46, 0x74, 0x6f, 0x16, 0x38, 0xa0, 0x32, 0x27, 0x35, 0xdd,
100 0xf0, 0x71, 0x6b, 0x0e, 0xdc, 0xf6, 0x25, 0xcb, 0xb2, 0xed, 0xea, 0xfb,
101 0x32, 0xd5, 0xaf, 0x1e, 0x03, 0x43, 0x03, 0x46, 0xf0, 0xa7, 0x39, 0xdb,
102 0x23, 0x96, 0x1d, 0x65, 0xe5, 0x78, 0x51, 0xf0, 0x84, 0xb0, 0x0e, 0x12,
103 0xac, 0x0e, 0x5b, 0xdc, 0xc9, 0xd6, 0x4c, 0x7c, 0x00, 0xd5, 0xb8, 0x1b,
104 0x88, 0x33, 0x3e, 0x2f, 0xda, 0xeb, 0xaa, 0xf7, 0x1a, 0x75, 0xc2, 0xae,
105 0x3a, 0x54, 0xde, 0x37, 0x8f, 0x10, 0xd2, 0x28, 0xe6, 0x84, 0x79, 0x4d,
106 0x15, 0xb4, 0xf3, 0xbd, 0x3f, 0x56, 0xd3, 0x3c, 0x3f, 0x18, 0xab, 0xfc,
107 0x2e, 0x05, 0xc0, 0x1e, 0x08, 0x31, 0xb6, 0x61, 0xd0, 0xfd, 0x9f, 0x4f,
108 0x3f, 0x64, 0x0d, 0x17, 0x93, 0xbc, 0xad, 0x41, 0xc7, 0x48, 0xbe, 0x00,
109 0x27, 0xa8, 0x4d, 0x70, 0x42, 0x92, 0x05, 0x54, 0xa6, 0x6d, 0xb8, 0xde,
110 0x56, 0x6e, 0x20, 0x49, 0x70, 0xee, 0x10, 0x3e, 0x6b, 0xd2, 0x7c, 0x31,
111 0xbd, 0x1b, 0x6e, 0xa4, 0x3c, 0x46, 0x62, 0x9f, 0x08, 0x66, 0x93, 0xf9,
112 0x2a, 0x51, 0x31, 0xa8, 0xdb, 0xb5, 0x9d, 0xb9, 0x0f, 0x73, 0xe8, 0xa0,
113 0x09, 0x32, 0x01, 0xe9, 0x7b, 0x2a, 0x8a, 0x36, 0xa0, 0xcf, 0x17, 0xb0,
114 0x50, 0x70, 0x9d, 0xa2, 0xf9, 0xa4, 0x6f, 0x62, 0x4d, 0xb6, 0xc9, 0x31,
115 0xfc, 0xf3, 0x08, 0x12, 0xff, 0x93, 0xbd, 0x62, 0x31, 0xd8, 0x1c, 0xea,
116 0x1a, 0x9e, 0xf5, 0x81, 0x28, 0x7f, 0x75, 0x5e, 0xd2, 0x27, 0x7a, 0xc2,
117 0x96, 0xf5, 0x9d, 0xdb, 0x18, 0xfc, 0x76, 0xdc, 0x46, 0xf0, 0x57, 0xc0,
118 0x58, 0x34, 0xc8, 0x22, 0x2d, 0x2a, 0x65, 0x75, 0xa7, 0xd9, 0x08, 0x62,
119 0xcd, 0x02, 0x03, 0x01, 0x00, 0x01};
121 const int kWebstoreSignaturesPublicKeySize =
122 arraysize(kWebstoreSignaturesPublicKey);
124 } // namespace extension_misc