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

Unified Diff: content/public/browser/storage_partition.h

Issue 10885044: Remove storage context accessors from ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged to ToT Created 8 years, 4 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
« no previous file with comments | « content/browser/worker_host/worker_service_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/storage_partition.h
diff --git a/content/public/browser/storage_partition.h b/content/public/browser/storage_partition.h
index d7c13630cd7414d5676f6f1cfe30c012dfb1089b..1f5288bcebfabc59bd63f4f89f6e9c410c4a0815 100644
--- a/content/public/browser/storage_partition.h
+++ b/content/public/browser/storage_partition.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
#define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
+#include <string>
+
#include "base/basictypes.h"
namespace appcache {
@@ -37,6 +39,14 @@ class DOMStorageContext;
// the cookies, localStorage, etc., that normal web renderers have access to.
class StoragePartition {
public:
+ // Returns the partition id for this StoragePartition.
+ //
+ // This value should be used to compare whether two StoragePartition objects
+ // are equivalent. On the IO thread, this can be particularly useful because
+ // StoragePartition objects themselves are only meant for use on the UI
+ // thread.
michaeln 2012/08/30 21:48:45 I'm thinking that we could make this class thread
+ virtual const std::string& GetId() = 0;
+
virtual quota::QuotaManager* GetQuotaManager() = 0;
virtual appcache::AppCacheService* GetAppCacheService() = 0;
virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
« no previous file with comments | « content/browser/worker_host/worker_service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698