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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 12391006: Give an app the file entries it had back on restart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index f12d92b7dfdbfe84ba8f90cd69bdb730795788b7..0b869e3498a891d3ac7e8ae0613401fc08255ccb 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -791,7 +791,10 @@ class ExtensionService
// Dispatches a restart event to the platform app associated with
// |extension_host|.
- static void RestartApplication(extensions::ExtensionHost* extension_host);
+ static void RestartApplication(
+ std::vector<extensions::app_file_handler_util::SavedFileEntry>
+ file_entries,
+ extensions::ExtensionHost* extension_host);
// Helper to inspect an ExtensionHost after it has been loaded.
void InspectExtensionHost(extensions::ExtensionHost* host);
@@ -919,6 +922,13 @@ class ExtensionService
// dispatched to the extension when it is loaded.
std::map<std::string, int> on_load_events_;
+ // Maps extension ids to vectors of saved file entries that the extension
+ // should be given access to on restart.
+ typedef std::map<std::string,
+ std::vector<extensions::app_file_handler_util::SavedFileEntry> >
+ SavedFileEntryMap;
+ SavedFileEntryMap on_restart_file_entries_;
+
content::NotificationRegistrar registrar_;
PrefChangeRegistrar pref_change_registrar_;

Powered by Google App Engine
This is Rietveld 408576698