| 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_INDEXED_DB_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 // Methods used in response to QuotaManager requests. | 26 // Methods used in response to QuotaManager requests. |
| 27 virtual std::vector<GURL> GetAllOrigins() = 0; | 27 virtual std::vector<GURL> GetAllOrigins() = 0; |
| 28 virtual int64 GetOriginDiskUsage(const GURL& origin_url) = 0; | 28 virtual int64 GetOriginDiskUsage(const GURL& origin_url) = 0; |
| 29 virtual base::Time GetOriginLastModified(const GURL& origin_url) = 0; | 29 virtual base::Time GetOriginLastModified(const GURL& origin_url) = 0; |
| 30 | 30 |
| 31 // Deletes all indexed db files for the given origin. | 31 // Deletes all indexed db files for the given origin. |
| 32 virtual void DeleteForOrigin(const GURL& origin_url) = 0; | 32 virtual void DeleteForOrigin(const GURL& origin_url) = 0; |
| 33 | 33 |
| 34 // Get the file name of the local storage file for the given origin. | 34 // Get the file name of the local storage file for the given origin. |
| 35 virtual FilePath GetFilePathForTesting(const string16& origin_id) const = 0; | 35 virtual base::FilePath GetFilePathForTesting( |
| 36 const string16& origin_id) const = 0; |
| 36 | 37 |
| 37 protected: | 38 protected: |
| 38 friend class base::RefCountedThreadSafe<IndexedDBContext>; | 39 friend class base::RefCountedThreadSafe<IndexedDBContext>; |
| 39 virtual ~IndexedDBContext() {} | 40 virtual ~IndexedDBContext() {} |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace content | 43 } // namespace content |
| 43 | 44 |
| 44 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ | 45 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ |
| OLD | NEW |