OLD | NEW |
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_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // | 61 // |
62 // TODO(ajwong): Right now, the embedder may have some | 62 // TODO(ajwong): Right now, the embedder may have some |
63 // URLRequestContextGetter objects that the StoragePartition does not know | 63 // URLRequestContextGetter objects that the StoragePartition does not know |
64 // about. This will no longer be the case when we resolve | 64 // about. This will no longer be the case when we resolve |
65 // http://crbug.com/159193. Remove |request_context_getter| when that bug | 65 // http://crbug.com/159193. Remove |request_context_getter| when that bug |
66 // is fixed. | 66 // is fixed. |
67 virtual void AsyncClearDataForOrigin( | 67 virtual void AsyncClearDataForOrigin( |
68 const GURL& storage_origin, | 68 const GURL& storage_origin, |
69 net::URLRequestContextGetter* request_context_getter) = 0; | 69 net::URLRequestContextGetter* request_context_getter) = 0; |
70 | 70 |
| 71 // Similar to AsyncClearDataForOrigin(), but deletes all data out of the |
| 72 // StoragePartition rather than just the data related to this origin. |
| 73 virtual void AsyncClearAllData() = 0; |
| 74 |
71 protected: | 75 protected: |
72 virtual ~StoragePartition() {} | 76 virtual ~StoragePartition() {} |
73 }; | 77 }; |
74 | 78 |
75 } // namespace content | 79 } // namespace content |
76 | 80 |
77 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 81 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |