Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 19547009: Move ".crx"/".pem" constants and extension_filenames constants into extensions/common/constants.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: todo Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/extensions/extension_constants.h" 5 #include "chrome/common/extensions/extension_constants.h"
6 #include "chrome/common/extensions/extension_manifest_constants.h" 6 #include "chrome/common/extensions/extension_manifest_constants.h"
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // of a blacklist: 83 // of a blacklist:
84 // http://www.gstatic.com/chrome/extensions/blacklist/l_0_0_0_7.txt 84 // http://www.gstatic.com/chrome/extensions/blacklist/l_0_0_0_7.txt
85 return StartsWithASCII(url.spec(), kExtensionBlocklistUrlPrefix, true) || 85 return StartsWithASCII(url.spec(), kExtensionBlocklistUrlPrefix, true) ||
86 StartsWithASCII(url.spec(), kExtensionBlocklistHttpsUrlPrefix, true); 86 StartsWithASCII(url.spec(), kExtensionBlocklistHttpsUrlPrefix, true);
87 } 87 }
88 88
89 const char kGalleryBrowsePrefix[] = "https://chrome.google.com/webstore"; 89 const char kGalleryBrowsePrefix[] = "https://chrome.google.com/webstore";
90 90
91 } // namespace extension_urls 91 } // namespace extension_urls
92 92
93 namespace extension_filenames {
94
95 const char kTempExtensionName[] = "CRX_INSTALL";
96
97 // The file to write our decoded images to, relative to the extension_path.
98 const char kDecodedImagesFilename[] = "DECODED_IMAGES";
99
100 // The file to write our decoded message catalogs to, relative to the
101 // extension_path.
102 const char kDecodedMessageCatalogsFilename[] = "DECODED_MESSAGE_CATALOGS";
103
104 const char kGeneratedBackgroundPageFilename[] =
105 "_generated_background_page.html";
106
107 const char kModulesDir[] = "_modules";
108
109 } // namespace extension_filenames
110
111 namespace extension_misc { 93 namespace extension_misc {
112 94
113 const char kBookmarkManagerId[] = "eemcgdkfndhakfknompkggombfjjjeno"; 95 const char kBookmarkManagerId[] = "eemcgdkfndhakfknompkggombfjjjeno";
114 const char kChromeAppId[] = "mgndgikekgjfcpckkfioiadnlibdjbkf"; 96 const char kChromeAppId[] = "mgndgikekgjfcpckkfioiadnlibdjbkf";
115 const char kCitrixReceiverAppId[] = "haiffjcadagjlijoggckpgfnoeiflnem"; 97 const char kCitrixReceiverAppId[] = "haiffjcadagjlijoggckpgfnoeiflnem";
116 const char kCitrixReceiverAppBetaId[] = "gnedhmakppccajfpfiihfcdlnpgomkcf"; 98 const char kCitrixReceiverAppBetaId[] = "gnedhmakppccajfpfiihfcdlnpgomkcf";
117 const char kCitrixReceiverAppDevId[] = "fjcibdnjlbfnbfdjneajpipnlcppleek"; 99 const char kCitrixReceiverAppDevId[] = "fjcibdnjlbfnbfdjneajpipnlcppleek";
118 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; 100 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
119 const char kEnterpriseWebStoreAppId[] = "afchcafgojfnemjkcbhfekplkmjaldaa"; 101 const char kEnterpriseWebStoreAppId[] = "afchcafgojfnemjkcbhfekplkmjaldaa";
120 const char kGmailAppId[] = "pjkljhegncpnkpknbcohdijeoejaedia"; 102 const char kGmailAppId[] = "pjkljhegncpnkpknbcohdijeoejaedia";
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 166
185 const int kScriptBadgeIconSizes[] = { 167 const int kScriptBadgeIconSizes[] = {
186 EXTENSION_ICON_BITTY, // 16 168 EXTENSION_ICON_BITTY, // 16
187 2 * EXTENSION_ICON_BITTY // 32 169 2 * EXTENSION_ICON_BITTY // 32
188 }; 170 };
189 171
190 const size_t kNumScriptBadgeIconSizes = 172 const size_t kNumScriptBadgeIconSizes =
191 arraysize(kScriptBadgeIconSizes); 173 arraysize(kScriptBadgeIconSizes);
192 174
193 } // namespace extension_misc 175 } // namespace extension_misc
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698