diff options
author | koz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-27 05:17:08 +0000 |
---|---|---|
committer | koz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-27 05:17:08 +0000 |
commit | 4fe61bc24f343a6a1381a782dec4fb45b2f6c437 (patch) | |
tree | 8e77431d19888f90a707503ec231d23f7f6b2b56 /apps/app_restore_service.h | |
parent | e946986518a345ef3bc7c31e4af4a043734e74c3 (diff) | |
download | chromium_src-4fe61bc24f343a6a1381a782dec4fb45b2f6c437.zip chromium_src-4fe61bc24f343a6a1381a782dec4fb45b2f6c437.tar.gz chromium_src-4fe61bc24f343a6a1381a782dec4fb45b2f6c437.tar.bz2 |
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
Diffstat (limited to 'apps/app_restore_service.h')
-rw-r--r-- | apps/app_restore_service.h | 15 |
1 files changed, 12 insertions, 3 deletions
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<SavedFileEntry>& file_entries); content::NotificationRegistrar registrar_; Profile* profile_; |