summaryrefslogtreecommitdiffstats
path: root/apps/app_restore_service.h
diff options
context:
space:
mode:
authorsammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-25 14:09:24 +0000
committersammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-25 14:09:24 +0000
commit961745f2cca727fe6144a28fd16ca536dbd94768 (patch)
tree0437c54836347b13227b0a45824cdbadefc0f063 /apps/app_restore_service.h
parent1b6a233a4f2af1a5c02c99f0c8958b14d3efafbb (diff)
downloadchromium_src-961745f2cca727fe6144a28fd16ca536dbd94768.zip
chromium_src-961745f2cca727fe6144a28fd16ca536dbd94768.tar.gz
chromium_src-961745f2cca727fe6144a28fd16ca536dbd94768.tar.bz2
Add support for persistent file access in apps.
This replaces chrome.fileSystem.getEntry(By)Id with retainEntry, restoreEntry and isRestorable, which enable restoring file access after an app is closed for apps with the fileSystem.retainFiles permission. Retained files are evicted by LRU, with a maximum of 500 retained files. BUG=224684 Review URL: https://chromiumcodereview.appspot.com/14607023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_restore_service.h')
-rw-r--r--apps/app_restore_service.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/app_restore_service.h b/apps/app_restore_service.h
index 97dcd88..65d3de2 100644
--- a/apps/app_restore_service.h
+++ b/apps/app_restore_service.h
@@ -15,17 +15,10 @@
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.
@@ -61,9 +54,7 @@ class AppRestoreService : public BrowserContextKeyedService,
void RecordAppStop(const std::string& extension_id);
void RecordIfAppHasWindows(const std::string& id);
- void RestoreApp(
- const extensions::Extension* extension,
- const std::vector<SavedFileEntry>& file_entries);
+ void RestoreApp(const extensions::Extension* extension);
void StartObservingShellWindows();
void StopObservingShellWindows();