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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/browser/quota/quota_manager_proxy.cc ('k') | webkit/browser/quota/quota_task.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_QUOTA_TASK_H_ 5 #ifndef WEBKIT_BROWSER_QUOTA_QUOTA_TASK_H_
6 #define WEBKIT_BROWSER_QUOTA_QUOTA_TASK_H_ 6 #define WEBKIT_BROWSER_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/browser/webkit_storage_browser_export.h" 14 #include "webkit/browser/webkit_storage_browser_export.h"
15 15
16 namespace base { 16 namespace base {
17 class SingleThreadTaskRunner; 17 class SingleThreadTaskRunner;
18 class TaskRunner; 18 class TaskRunner;
19 } 19 }
20 20
21 namespace quota { 21 namespace storage {
22 22
23 class QuotaTaskObserver; 23 class QuotaTaskObserver;
24 24
25 // A base class for quota tasks. 25 // A base class for quota tasks.
26 // TODO(kinuko): Revise this using base::Callback. 26 // TODO(kinuko): Revise this using base::Callback.
27 class QuotaTask { 27 class QuotaTask {
28 public: 28 public:
29 void Start(); 29 void Start();
30 30
31 protected: 31 protected:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 void RegisterTask(QuotaTask* task); 71 void RegisterTask(QuotaTask* task);
72 void UnregisterTask(QuotaTask* task); 72 void UnregisterTask(QuotaTask* task);
73 73
74 typedef std::set<QuotaTask*> TaskSet; 74 typedef std::set<QuotaTask*> TaskSet;
75 TaskSet running_quota_tasks_; 75 TaskSet running_quota_tasks_;
76 }; 76 };
77 } 77 }
78 78
79 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_TASK_H_ 79 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_TASK_H_
OLDNEW
« no previous file with comments | « webkit/browser/quota/quota_manager_proxy.cc ('k') | webkit/browser/quota/quota_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698