| OLD | NEW |
| 1 // Copyright (c) 2011 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_DOM_STORAGE_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 39 virtual void DeleteOrigin(const GURL& origin) = 0; | 39 virtual void DeleteOrigin(const GURL& origin) = 0; |
| 40 | 40 |
| 41 // The stuff below is DEPRECATED. | 41 // The stuff below is DEPRECATED. |
| 42 typedef base::Callback<void(const std::vector<FilePath>&)> | 42 typedef base::Callback<void(const std::vector<FilePath>&)> |
| 43 GetAllStorageFilesCallback; | 43 GetAllStorageFilesCallback; |
| 44 virtual void GetAllStorageFiles( | 44 virtual void GetAllStorageFiles( |
| 45 const GetAllStorageFilesCallback& callback) = 0; | 45 const GetAllStorageFilesCallback& callback) = 0; |
| 46 virtual FilePath GetFilePath(const string16& origin_id) const = 0; | 46 virtual FilePath GetFilePath(const string16& origin_id) const = 0; |
| 47 virtual void DeleteForOrigin(const string16& origin_id) = 0; | 47 virtual void DeleteForOrigin(const string16& origin_id) = 0; |
| 48 virtual void DeleteLocalStorageFile(const FilePath& file_path) = 0; | 48 virtual void DeleteLocalStorageFile(const FilePath& file_path) = 0; |
| 49 virtual void DeleteDataModifiedSince(const base::Time& cutoff) = 0; | |
| 50 | 49 |
| 51 protected: | 50 protected: |
| 52 virtual ~DOMStorageContext() {} | 51 virtual ~DOMStorageContext() {} |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 } // namespace content | 54 } // namespace content |
| 56 | 55 |
| 57 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ | 56 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ |
| OLD | NEW |