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

Side by Side Diff: webkit/quota/quota_task.h

Issue 11274003: webkit: Merge 'database' and 'quota' to 'webkit_storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More EXPORT for Win Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « webkit/quota/quota_manager.h ('k') | webkit/quota/quota_temporary_storage_evictor.h » ('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 (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 WEBKIT_QUOTA_QUOTA_TASK_H_ 5 #ifndef WEBKIT_QUOTA_QUOTA_TASK_H_
6 #define WEBKIT_QUOTA_QUOTA_TASK_H_ 6 #define WEBKIT_QUOTA_QUOTA_TASK_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/sequenced_task_runner_helpers.h" 13 #include "base/sequenced_task_runner_helpers.h"
14 #include "webkit/storage/webkit_storage_export.h"
14 15
15 namespace base { 16 namespace base {
16 class SingleThreadTaskRunner; 17 class SingleThreadTaskRunner;
17 class TaskRunner; 18 class TaskRunner;
18 } 19 }
19 20
20 namespace quota { 21 namespace quota {
21 22
22 class QuotaTaskObserver; 23 class QuotaTaskObserver;
23 24
(...skipping 29 matching lines...) Expand all
53 private: 54 private:
54 friend class base::DeleteHelper<QuotaTask>; 55 friend class base::DeleteHelper<QuotaTask>;
55 friend class QuotaTaskObserver; 56 friend class QuotaTaskObserver;
56 57
57 void Abort(); 58 void Abort();
58 QuotaTaskObserver* observer_; 59 QuotaTaskObserver* observer_;
59 scoped_refptr<base::SingleThreadTaskRunner> original_task_runner_; 60 scoped_refptr<base::SingleThreadTaskRunner> original_task_runner_;
60 bool delete_scheduled_; 61 bool delete_scheduled_;
61 }; 62 };
62 63
63 class QuotaTaskObserver { 64 class WEBKIT_STORAGE_EXPORT QuotaTaskObserver {
64 protected: 65 protected:
65 friend class QuotaTask; 66 friend class QuotaTask;
66 67
67 QuotaTaskObserver(); 68 QuotaTaskObserver();
68 virtual ~QuotaTaskObserver(); 69 virtual ~QuotaTaskObserver();
69 70
70 void RegisterTask(QuotaTask* task); 71 void RegisterTask(QuotaTask* task);
71 void UnregisterTask(QuotaTask* task); 72 void UnregisterTask(QuotaTask* task);
72 73
73 typedef std::set<QuotaTask*> TaskSet; 74 typedef std::set<QuotaTask*> TaskSet;
74 TaskSet running_quota_tasks_; 75 TaskSet running_quota_tasks_;
75 }; 76 };
76 } 77 }
77 78
78 #endif // WEBKIT_QUOTA_QUOTA_TASK_H_ 79 #endif // WEBKIT_QUOTA_QUOTA_TASK_H_
OLDNEW
« no previous file with comments | « webkit/quota/quota_manager.h ('k') | webkit/quota/quota_temporary_storage_evictor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698