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

Side by Side Diff: storage/browser/quota/storage_observer.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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
« no previous file with comments | « storage/browser/quota/storage_monitor.cc ('k') | storage/browser/quota/storage_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « storage/browser/quota/storage_monitor.cc ('k') | storage/browser/quota/storage_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698