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

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 12317062: Expose StoragePartition clear methods for Android WebView (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 virtual base::FilePath GetPath() OVERRIDE; 23 virtual base::FilePath GetPath() OVERRIDE;
24 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; 24 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE;
25 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE; 25 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE;
26 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; 26 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
27 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; 27 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE;
28 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; 28 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
29 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; 29 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE;
30 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE; 30 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE;
31 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; 31 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE;
32 virtual void AsyncClearDataForOrigin( 32 virtual void AsyncClearDataForOrigin(
33 uint32 storage_mask,
33 const GURL& storage_origin, 34 const GURL& storage_origin,
34 net::URLRequestContextGetter* request_context_getter) OVERRIDE; 35 net::URLRequestContextGetter* request_context_getter) OVERRIDE;
35 virtual void AsyncClearAllData() OVERRIDE; 36 virtual void AsyncClearData(uint32 storage_mask) OVERRIDE;
36 37
37 private: 38 private:
38 friend class StoragePartitionImplMap; 39 friend class StoragePartitionImplMap;
39 40
40 // The |partition_path| is the absolute path to the root of this 41 // The |partition_path| is the absolute path to the root of this
41 // StoragePartition's on-disk storage. 42 // StoragePartition's on-disk storage.
42 // 43 //
43 // If |in_memory| is true, the |partition_path| is (ab)used as a way of 44 // If |in_memory| is true, the |partition_path| is (ab)used as a way of
44 // distinguishing different in-memory partitions, but nothing is persisted 45 // distinguishing different in-memory partitions, but nothing is persisted
45 // on to disk. 46 // on to disk.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 82 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
82 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; 83 scoped_refptr<DOMStorageContextImpl> dom_storage_context_;
83 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 84 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 86 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
86 }; 87 };
87 88
88 } // namespace content 89 } // namespace content
89 90
90 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 91 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698