15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "chrome/common/extensions/extension_constants.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace extension_urls {
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
91320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tuccinamespace {
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGalleryUpdateHttpsUrl[] =
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "https://clients2.google.com/service/update2/crx";
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
141320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci}  // namespace
15cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
16cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)GURL GetDefaultWebstoreUpdateUrl() {
17cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  return GURL(kGalleryUpdateHttpsUrl);
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kWebstoreSourceField[] = "utm_source";
2168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
2268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kLaunchSourceAppList[] = "chrome-app-launcher";
2368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kLaunchSourceAppListSearch[] = "chrome-app-launcher-search";
2423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kLaunchSourceAppListInfoDialog[] = "chrome-app-launcher-info-dialog";
2568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace extension_urls
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace extension_misc {
29c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBookmarkManagerId[] = "eemcgdkfndhakfknompkggombfjjjeno";
31c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kChromeAppId[] = "mgndgikekgjfcpckkfioiadnlibdjbkf";
32c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
334ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdochconst char kEasyUnlockAppId[] = "mkaemigholebcgchlkbankmihknojeak";
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnterpriseWebStoreAppId[] = "afchcafgojfnemjkcbhfekplkmjaldaa";
35c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kGmailAppId[] = "pjkljhegncpnkpknbcohdijeoejaedia";
36c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kGoogleDocAppId[] = "aohghmighlieiainnegkcijnfilokake";
37c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kGooglePlayMusicAppId[] = "icppfcnhkcmnfdhfhphakoifcfokfdhg";
38c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kGoogleSearchAppId[] = "coobgpohoikkiipiblmjeljniedjpjpf";
39c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kGoogleSheetsAppId[] = "felcaaldnbdncclmgdcncolpebgiejap";
40c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kGoogleSlidesAppId[] = "aapocclcgogkmnckokdopfmhonfmgoek";
415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHTermAppId[] = "pnhechapfaindjhompbnflcldabbghjo";
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHTermDevAppId[] = "okddffdblfhhnmhodogpojmfkjmhinfp";
4390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kIdentityApiUiAppId[] = "ahjaciijnoiaklcomgnblndopackapon";
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCroshBuiltinAppId[] = "nkoccljplnhpfnfiajclkommnmllphnl";
451320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kHotwordAudioVerificationAppId[] =
461320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    "abjokfonkihficiokmkfboogholifghn";
475d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kHotwordExtensionId[] = "bepbmhgboaologfdajaanbcjmnhjmhfn";
481320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kHotwordSharedModuleId[] = "lccekmodgklaepjeofjdjpbminllajkg";
49a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kPdfExtensionId[] = "mhjfbmdgcfjbbpaeojofohoefgiehjai";
502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kQuickOfficeComponentExtensionId[] =
512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "bpmcpldpdmajfigpchkicefoigmkfalc";
52a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kQuickOfficeInternalExtensionId[] =
53a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "ehibbfinohgbchlgdbfpikodjaojhccn";
542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kQuickOfficeExtensionId[] = "gbkeegbaiigmenfmjfclcdgdpimamgkj";
55c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSettingsAppId[] = "ennkphjdgehloodpbhlhldgbnhmacadg";
562a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kStreamsPrivateTestExtensionId[] =
572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "oickdpebdnfbgkcaoklfcdhjniefkcji";
58c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kYoutubeAppId[] = "blpcfgokakmgnkcojhhkbfbldkacnbeo";
5990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kInAppPaymentsSupportAppId[] = "nmmhkkegccagdldgiimedpiccmgmieda";
60c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppLaunchHistogram[] = "Extensions.AppLaunch";
622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPlatformAppLaunchHistogram[] = "Apps.AppLaunch";
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_CHROMEOS)
6458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// The extension id for the built-in component extension.
6558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kChromeVoxExtensionId[] =
6658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)    "mndnfokpggljbaajbnioimlmbfngpief";
67c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochconst char kChromeVoxExtensionPath[] = "chromeos/chromevox";
68cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kChromeVoxManifestFilename[] = "manifest.json";
69cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kChromeVoxGuestManifestFilename[] = "manifest_guest.json";
701320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kChromeVoxNextManifestFilename[] = "manifest_next.json";
711320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kChromeVoxNextGuestManifestFilename[] = "manifest_next_guest.json";
72010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kBrailleImeExtensionId[] =
73010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)    "jddehjeebkoimngcbdkaahpobgicbffp";
74010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kBrailleImeExtensionPath[] =
75010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)    "chromeos/braille_ime";
76010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kBrailleImeEngineId[] =
77010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)    "_comp_ime_jddehjeebkoimngcbdkaahpobgicbffpbraille";
78ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kConnectivityDiagnosticsPath[] =
79ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch    "/usr/share/chromeos-assets/connectivity_diagnostics";
80010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kConnectivityDiagnosticsKioskPath[] =
81010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)    "/usr/share/chromeos-assets/connectivity_diagnostics_kiosk";
82a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kConnectivityDiagnosticsLauncherPath[] =
83a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "/usr/share/chromeos-assets/connectivity_diagnostics_launcher";
842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSpeechSynthesisExtensionPath[] =
852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "/usr/share/chromeos-assets/speech_synthesis/patts";
862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSpeechSynthesisExtensionId[] =
872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "gjjabgpgjpampikjhjpfhneeoapjbjaf";
885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWallpaperManagerId[] = "obklkkbkpaoaejdabbfldmcfplpdgolj";
89a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kFirstRunDialogId[] = "jdgcneonijmofocbhmijhacgchbihela";
9058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#else
9158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// The extension id for the web store extension.
9258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kChromeVoxExtensionId[] =
9358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)    "kgejglhpjiefppelpmljglcjbhoiplfn";
945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppStateNotInstalled[] = "not_installed";
975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppStateInstalled[] = "installed";
985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppStateDisabled[] = "disabled";
995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppStateRunning[] = "running";
1005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppStateCannotRun[] = "cannot_run";
1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppStateReadyToRun[] = "ready_to_run";
1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaFileSystemPathPart[] = "_";
1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
105cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const uint8 kWebstoreSignaturesPublicKey[] = {
106cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
107cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00,
108cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0x8f, 0xfb, 0xbf,
109cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x5c, 0x37, 0x63, 0x94, 0x3c, 0xb0, 0xee, 0x01, 0xc4, 0xb5, 0xa6, 0x9a,
110cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0xb1, 0x9f, 0x46, 0x74, 0x6f, 0x16, 0x38, 0xa0, 0x32, 0x27, 0x35, 0xdd,
111cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0xf0, 0x71, 0x6b, 0x0e, 0xdc, 0xf6, 0x25, 0xcb, 0xb2, 0xed, 0xea, 0xfb,
112cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x32, 0xd5, 0xaf, 0x1e, 0x03, 0x43, 0x03, 0x46, 0xf0, 0xa7, 0x39, 0xdb,
113cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x23, 0x96, 0x1d, 0x65, 0xe5, 0x78, 0x51, 0xf0, 0x84, 0xb0, 0x0e, 0x12,
114cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0xac, 0x0e, 0x5b, 0xdc, 0xc9, 0xd6, 0x4c, 0x7c, 0x00, 0xd5, 0xb8, 0x1b,
115cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x88, 0x33, 0x3e, 0x2f, 0xda, 0xeb, 0xaa, 0xf7, 0x1a, 0x75, 0xc2, 0xae,
116cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x3a, 0x54, 0xde, 0x37, 0x8f, 0x10, 0xd2, 0x28, 0xe6, 0x84, 0x79, 0x4d,
117cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x15, 0xb4, 0xf3, 0xbd, 0x3f, 0x56, 0xd3, 0x3c, 0x3f, 0x18, 0xab, 0xfc,
118cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x2e, 0x05, 0xc0, 0x1e, 0x08, 0x31, 0xb6, 0x61, 0xd0, 0xfd, 0x9f, 0x4f,
119cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x3f, 0x64, 0x0d, 0x17, 0x93, 0xbc, 0xad, 0x41, 0xc7, 0x48, 0xbe, 0x00,
120cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x27, 0xa8, 0x4d, 0x70, 0x42, 0x92, 0x05, 0x54, 0xa6, 0x6d, 0xb8, 0xde,
121cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x56, 0x6e, 0x20, 0x49, 0x70, 0xee, 0x10, 0x3e, 0x6b, 0xd2, 0x7c, 0x31,
122cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0xbd, 0x1b, 0x6e, 0xa4, 0x3c, 0x46, 0x62, 0x9f, 0x08, 0x66, 0x93, 0xf9,
123cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x2a, 0x51, 0x31, 0xa8, 0xdb, 0xb5, 0x9d, 0xb9, 0x0f, 0x73, 0xe8, 0xa0,
124cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x09, 0x32, 0x01, 0xe9, 0x7b, 0x2a, 0x8a, 0x36, 0xa0, 0xcf, 0x17, 0xb0,
125cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x50, 0x70, 0x9d, 0xa2, 0xf9, 0xa4, 0x6f, 0x62, 0x4d, 0xb6, 0xc9, 0x31,
126cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0xfc, 0xf3, 0x08, 0x12, 0xff, 0x93, 0xbd, 0x62, 0x31, 0xd8, 0x1c, 0xea,
127cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x1a, 0x9e, 0xf5, 0x81, 0x28, 0x7f, 0x75, 0x5e, 0xd2, 0x27, 0x7a, 0xc2,
128cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x96, 0xf5, 0x9d, 0xdb, 0x18, 0xfc, 0x76, 0xdc, 0x46, 0xf0, 0x57, 0xc0,
129cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0x58, 0x34, 0xc8, 0x22, 0x2d, 0x2a, 0x65, 0x75, 0xa7, 0xd9, 0x08, 0x62,
130cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    0xcd, 0x02, 0x03, 0x01, 0x00, 0x01};
131cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
132cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const int kWebstoreSignaturesPublicKeySize =
133cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    arraysize(kWebstoreSignaturesPublicKey);
134cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace extension_misc
136