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

Side by Side Diff: webkit/browser/quota/quota_manager_proxy.cc

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.h ('k') | webkit/browser/quota/quota_task.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 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 #include "webkit/browser/quota/quota_manager_proxy.h" 5 #include "webkit/browser/quota/quota_manager_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/task_runner_util.h" 13 #include "base/task_runner_util.h"
14 14
15 namespace quota { 15 namespace storage {
16 16
17 namespace { 17 namespace {
18 18
19 void DidGetUsageAndQuota( 19 void DidGetUsageAndQuota(
20 base::SequencedTaskRunner* original_task_runner, 20 base::SequencedTaskRunner* original_task_runner,
21 const QuotaManagerProxy::GetUsageAndQuotaCallback& callback, 21 const QuotaManagerProxy::GetUsageAndQuotaCallback& callback,
22 QuotaStatusCode status, int64 usage, int64 quota) { 22 QuotaStatusCode status, int64 usage, int64 quota) {
23 if (!original_task_runner->RunsTasksOnCurrentThread()) { 23 if (!original_task_runner->RunsTasksOnCurrentThread()) {
24 original_task_runner->PostTask( 24 original_task_runner->PostTask(
25 FROM_HERE, 25 FROM_HERE,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 150 }
151 151
152 QuotaManagerProxy::QuotaManagerProxy( 152 QuotaManagerProxy::QuotaManagerProxy(
153 QuotaManager* manager, base::SingleThreadTaskRunner* io_thread) 153 QuotaManager* manager, base::SingleThreadTaskRunner* io_thread)
154 : manager_(manager), io_thread_(io_thread) { 154 : manager_(manager), io_thread_(io_thread) {
155 } 155 }
156 156
157 QuotaManagerProxy::~QuotaManagerProxy() { 157 QuotaManagerProxy::~QuotaManagerProxy() {
158 } 158 }
159 159
160 } // namespace quota 160 } // namespace storage
OLDNEW
« no previous file with comments | « webkit/browser/quota/quota_manager_proxy.h ('k') | webkit/browser/quota/quota_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698