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

Side by Side Diff: extensions/common/extension.h

Issue 289283013: Revert of Unload all apps / extensions when deleting a profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 EXTENSIONS_COMMON_EXTENSION_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_
6 #define EXTENSIONS_COMMON_EXTENSION_H_ 6 #define EXTENSIONS_COMMON_EXTENSION_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 std::string old_name; 507 std::string old_name;
508 508
509 InstalledExtensionInfo(const Extension* extension, 509 InstalledExtensionInfo(const Extension* extension,
510 bool is_update, 510 bool is_update,
511 const std::string& old_name); 511 const std::string& old_name);
512 }; 512 };
513 513
514 struct UnloadedExtensionInfo { 514 struct UnloadedExtensionInfo {
515 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver. 515 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver.
516 enum Reason { 516 enum Reason {
517 REASON_UNDEFINED, // Undefined state used to initialize variables. 517 REASON_DISABLE, // Extension is being disabled.
518 REASON_DISABLE, // Extension is being disabled. 518 REASON_UPDATE, // Extension is being updated to a newer version.
519 REASON_UPDATE, // Extension is being updated to a newer version. 519 REASON_UNINSTALL, // Extension is being uninstalled.
520 REASON_UNINSTALL, // Extension is being uninstalled. 520 REASON_TERMINATE, // Extension has terminated.
521 REASON_TERMINATE, // Extension has terminated. 521 REASON_BLACKLIST, // Extension has been blacklisted.
522 REASON_BLACKLIST, // Extension has been blacklisted.
523 REASON_PROFILE_SHUTDOWN, // Profile is being shut down.
524 }; 522 };
525 523
526 Reason reason; 524 Reason reason;
527 525
528 // The extension being unloaded - this should always be non-NULL. 526 // The extension being unloaded - this should always be non-NULL.
529 const Extension* extension; 527 const Extension* extension;
530 528
531 UnloadedExtensionInfo(const Extension* extension, Reason reason); 529 UnloadedExtensionInfo(const Extension* extension, Reason reason);
532 }; 530 };
533 531
(...skipping 16 matching lines...) Expand all
550 548
551 UpdatedExtensionPermissionsInfo( 549 UpdatedExtensionPermissionsInfo(
552 const Extension* extension, 550 const Extension* extension,
553 const PermissionSet* permissions, 551 const PermissionSet* permissions,
554 Reason reason); 552 Reason reason);
555 }; 553 };
556 554
557 } // namespace extensions 555 } // namespace extensions
558 556
559 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 557 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698