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

Unified Diff: content/browser/storage_partition.h

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DISALLOW_COPY_AND_ASSIGN, and change RPH::CreateMessageFilters() to not suddenly isolate all… 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/site_instance_impl_unittest.cc ('k') | content/browser/storage_partition.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition.h
diff --git a/content/browser/storage_partition.h b/content/browser/storage_partition.h
deleted file mode 100644
index ee6885e0463db64ad090a9ec126166e9ee8d4f68..0000000000000000000000000000000000000000
--- a/content/browser/storage_partition.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_STORAGE_PARTITION_H_
-#define CONTENT_BROWSER_STORAGE_PARTITION_H_
-
-#include "base/file_path.h"
-#include "base/memory/ref_counted.h"
-
-namespace fileapi {
-class FileSystemContext;
-}
-
-namespace quota {
-class QuotaManager;
-}
-
-namespace webkit_database {
-class DatabaseTracker;
-}
-
-class ChromeAppCacheService;
-class DOMStorageContextImpl;
-
-namespace content {
-
-class BrowserContext;
-class IndexedDBContext;
-
-// Defines the what persistent state a child process can access.
-//
-// The StoragePartition defines the view each child process has of the
-// persistent state inside the BrowserContext. This is used to implement
-// isolated storage where a renderer with isolated storage cannot see
-// the cookies, localStorage, etc., that normal web renderers have access to.
-class StoragePartition {
- public:
- ~StoragePartition();
-
- // TODO(ajwong): Break the direct dependency on |context|. We only
- // need 3 pieces of info from it.
- static StoragePartition* Create(BrowserContext* context,
- const FilePath& partition_path);
-
- quota::QuotaManager* quota_manager() { return quota_manager_; }
- ChromeAppCacheService* appcache_service() { return appcache_service_; }
- fileapi::FileSystemContext* filesystem_context() {
- return filesystem_context_;
- }
- webkit_database::DatabaseTracker* database_tracker() {
- return database_tracker_;
- }
- DOMStorageContextImpl* dom_storage_context() { return dom_storage_context_; }
- IndexedDBContext* indexed_db_context() { return indexed_db_context_; }
-
- private:
- StoragePartition(const FilePath& partition_path,
- quota::QuotaManager* quota_manager,
- ChromeAppCacheService* appcache_service,
- fileapi::FileSystemContext* filesystem_context,
- webkit_database::DatabaseTracker* database_tracker,
- DOMStorageContextImpl* dom_storage_context,
- IndexedDBContext* indexed_db_context);
-
- FilePath partition_path_;
- scoped_refptr<quota::QuotaManager> quota_manager_;
- scoped_refptr<ChromeAppCacheService> appcache_service_;
- scoped_refptr<fileapi::FileSystemContext> filesystem_context_;
- scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
- scoped_refptr<DOMStorageContextImpl> dom_storage_context_;
- scoped_refptr<IndexedDBContext> indexed_db_context_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_STORAGE_PARTITION_H_
« no previous file with comments | « content/browser/site_instance_impl_unittest.cc ('k') | content/browser/storage_partition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698