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

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

Issue 266343002: 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
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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 std::string old_name; 506 std::string old_name;
507 507
508 InstalledExtensionInfo(const Extension* extension, 508 InstalledExtensionInfo(const Extension* extension,
509 bool is_update, 509 bool is_update,
510 const std::string& old_name); 510 const std::string& old_name);
511 }; 511 };
512 512
513 struct UnloadedExtensionInfo { 513 struct UnloadedExtensionInfo {
514 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver. 514 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver.
515 enum Reason { 515 enum Reason {
516 REASON_DISABLE, // Extension is being disabled. 516 REASON_DISABLE, // Extension is being disabled.
517 REASON_UPDATE, // Extension is being updated to a newer version. 517 REASON_UPDATE, // Extension is being updated to a newer version.
518 REASON_UNINSTALL, // Extension is being uninstalled. 518 REASON_UNINSTALL, // Extension is being uninstalled.
519 REASON_TERMINATE, // Extension has terminated. 519 REASON_TERMINATE, // Extension has terminated.
520 REASON_BLACKLIST, // Extension has been blacklisted. 520 REASON_BLACKLIST, // Extension has been blacklisted.
521 REASON_PROFILE_SHUTDOWN, // Profile is being shut down.
521 }; 522 };
522 523
523 Reason reason; 524 Reason reason;
524 525
525 // The extension being unloaded - this should always be non-NULL. 526 // The extension being unloaded - this should always be non-NULL.
526 const Extension* extension; 527 const Extension* extension;
527 528
528 UnloadedExtensionInfo(const Extension* extension, Reason reason); 529 UnloadedExtensionInfo(const Extension* extension, Reason reason);
529 }; 530 };
530 531
(...skipping 16 matching lines...) Expand all
547 548
548 UpdatedExtensionPermissionsInfo( 549 UpdatedExtensionPermissionsInfo(
549 const Extension* extension, 550 const Extension* extension,
550 const PermissionSet* permissions, 551 const PermissionSet* permissions,
551 Reason reason); 552 Reason reason);
552 }; 553 };
553 554
554 } // namespace extensions 555 } // namespace extensions
555 556
556 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 557 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW
« chrome/browser/profiles/profile_manager.cc ('K') | « chrome/browser/ui/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698