| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_ | 5 #ifndef STORAGE_BROWSER_QUOTA_STORAGE_OBSERVER_H_ |
| 6 #define WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_ | 6 #define STORAGE_BROWSER_QUOTA_STORAGE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "storage/browser/quota/quota_client.h" |
| 11 #include "storage/common/quota/quota_types.h" |
| 10 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 11 #include "webkit/browser/quota/quota_client.h" | |
| 12 #include "webkit/common/quota/quota_types.h" | |
| 13 | 13 |
| 14 namespace storage { | 14 namespace storage { |
| 15 | 15 |
| 16 // This interface is implemented by observers that wish to monitor storage | 16 // This interface is implemented by observers that wish to monitor storage |
| 17 // events, such as changes in quota or usage. | 17 // events, such as changes in quota or usage. |
| 18 class STORAGE_EXPORT StorageObserver { | 18 class STORAGE_EXPORT StorageObserver { |
| 19 public: | 19 public: |
| 20 struct STORAGE_EXPORT Filter { | 20 struct STORAGE_EXPORT Filter { |
| 21 // The storage type to monitor. This must not be kStorageTypeUnknown or | 21 // The storage type to monitor. This must not be kStorageTypeUnknown or |
| 22 // kStorageTypeQuotaNotManaged. | 22 // kStorageTypeQuotaNotManaged. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Will be called on the IO thread when a storage event occurs. | 70 // Will be called on the IO thread when a storage event occurs. |
| 71 virtual void OnStorageEvent(const Event& event) = 0; | 71 virtual void OnStorageEvent(const Event& event) = 0; |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 virtual ~StorageObserver() {} | 74 virtual ~StorageObserver() {} |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace storage | 77 } // namespace storage |
| 78 | 78 |
| 79 #endif // WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_ | 79 #endif // STORAGE_BROWSER_QUOTA_STORAGE_OBSERVER_H_ |
| OLD | NEW |