From 4fe61bc24f343a6a1381a782dec4fb45b2f6c437 Mon Sep 17 00:00:00 2001 From: "koz@chromium.org" Date: Wed, 27 Feb 2013 05:17:08 +0000 Subject: Track and persist what file entries an extension has access to. Note this change doesn't re-grant permissions to the extensions at any point. Subsequent patches will cause chrome to restore access to the file entries an extension had in the case of an unexpected crash (ie: onRestarted()). BUG=165832 Review URL: https://chromiumcodereview.appspot.com/11857009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184878 0039d316-1c4b-4281-b951-d872f2087c98 --- apps/app_restore_service.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'apps/app_restore_service.h') diff --git a/apps/app_restore_service.h b/apps/app_restore_service.h index f919a7a..0217f60 100644 --- a/apps/app_restore_service.h +++ b/apps/app_restore_service.h @@ -11,12 +11,19 @@ #include "content/public/browser/notification_observer.h" #include "content/public/browser/notification_registrar.h" -class Profile; - namespace extensions { class Extension; + +namespace app_file_handler_util { +struct SavedFileEntry; +} + } +class Profile; + +using extensions::app_file_handler_util::SavedFileEntry; + namespace apps { // Tracks what apps need to be restarted when the browser restarts. @@ -37,7 +44,9 @@ class AppRestoreService : public ProfileKeyedService, void RecordAppStart(const std::string& extension_id); void RecordAppStop(const std::string& extension_id); - void RestoreApp(const extensions::Extension* extension); + void RestoreApp( + const extensions::Extension* extension, + const std::vector& file_entries); content::NotificationRegistrar registrar_; Profile* profile_; -- cgit v1.1