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

Unified Diff: pkg/analyzer/lib/file_system/file_system.dart

Issue 632353002: Add support for cross-session storage (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: pkg/analyzer/lib/file_system/file_system.dart
diff --git a/pkg/analyzer/lib/file_system/file_system.dart b/pkg/analyzer/lib/file_system/file_system.dart
index 5ef0196c56ca176b677724b7ebd42dae76a321fc..c2fb88f6e9dcaa597445a30d7aa2c0fa0d234499 100644
--- a/pkg/analyzer/lib/file_system/file_system.dart
+++ b/pkg/analyzer/lib/file_system/file_system.dart
@@ -109,6 +109,15 @@ abstract class ResourceProvider {
* Return the [Resource] that corresponds to the given [path].
*/
Resource getResource(String path);
+
+ /**
+ * Return the folder in which the plugin with the given [pluginId] can store
+ * state that will persist across sessions. The folder returned for a given id
+ * will not be returned for a different id, ensuring that plugins do not need
+ * to be concerned with file name collisions with other plugins, assuming that
+ * the plugin ids are unique. The plugin ids must be valid folder names.
+ */
+ Folder getStateLocation(String pluginId);
}

Powered by Google App Engine
This is Rietveld 408576698