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

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

Issue 9317013: Add a centralized mechanism for whitelisting access to extension permissions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: update CanSpecifyAPIPermission logic Created 8 years, 10 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
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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 namespace extension_misc { 342 namespace extension_misc {
343 // Matches chrome.windows.WINDOW_ID_NONE. 343 // Matches chrome.windows.WINDOW_ID_NONE.
344 const int kUnknownWindowId = -1; 344 const int kUnknownWindowId = -1;
345 345
346 // Matches chrome.windows.WINDOW_ID_CURRENT. 346 // Matches chrome.windows.WINDOW_ID_CURRENT.
347 const int kCurrentWindowId = -2; 347 const int kCurrentWindowId = -2;
348 348
349 // The extension id of the bookmark manager. 349 // The extension id of the bookmark manager.
350 extern const char kBookmarkManagerId[]; 350 extern const char kBookmarkManagerId[];
351 351
352 // The extension id of the Citrix Receiver application.
353 extern const char kCitrixReceiverAppId[];
354
355 // The extension id of the Enterprise Web Store component application.
356 extern const char kEnterpriseWebStoreAppId[];
357
358 // The extension id of the HTerm app for ChromeOS.
359 extern const char kHTermAppId[];
360
361 // The extension id of the HTerm dev app for ChromeOS.
362 extern const char kHTermDevAppId[];
363
352 // The extension id of the Web Store component application. 364 // The extension id of the Web Store component application.
353 extern const char kWebStoreAppId[]; 365 extern const char kWebStoreAppId[];
354 366
355 // The extension id of the Cloud Print component application. 367 // The extension id of the Cloud Print component application.
356 extern const char kCloudPrintAppId[]; 368 extern const char kCloudPrintAppId[];
357 369
358 // Note: this structure is an ASN.1 which encodes the algorithm used 370 // Note: this structure is an ASN.1 which encodes the algorithm used
359 // with its parameters. This is defined in PKCS #1 v2.1 (RFC 3447). 371 // with its parameters. This is defined in PKCS #1 v2.1 (RFC 3447).
360 // It is encoding: { OID sha1WithRSAEncryption PARAMETERS NULL } 372 // It is encoding: { OID sha1WithRSAEncryption PARAMETERS NULL }
361 const uint8 kSignatureAlgorithm[15] = { 373 const uint8 kSignatureAlgorithm[15] = {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 485
474 enum UnloadedExtensionReason { 486 enum UnloadedExtensionReason {
475 UNLOAD_REASON_DISABLE, // Extension is being disabled. 487 UNLOAD_REASON_DISABLE, // Extension is being disabled.
476 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. 488 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version.
477 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. 489 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled.
478 UNLOAD_REASON_TERMINATE, // Extension has terminated. 490 UNLOAD_REASON_TERMINATE, // Extension has terminated.
479 }; 491 };
480 } // extension_misc 492 } // extension_misc
481 493
482 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 494 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698