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

Side by Side Diff: storage/browser/quota/quota_manager.cc

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/quota_manager.h ('k') | storage/browser/quota/quota_manager_proxy.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 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 #include "webkit/browser/quota/quota_manager.h" 5 #include "storage/browser/quota/quota_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <functional> 9 #include <functional>
10 #include <set> 10 #include <set>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
19 #include "base/sequenced_task_runner.h" 19 #include "base/sequenced_task_runner.h"
20 #include "base/single_thread_task_runner.h" 20 #include "base/single_thread_task_runner.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/sys_info.h" 22 #include "base/sys_info.h"
23 #include "base/task_runner_util.h" 23 #include "base/task_runner_util.h"
24 #include "base/time/time.h" 24 #include "base/time/time.h"
25 #include "net/base/net_util.h" 25 #include "net/base/net_util.h"
26 #include "webkit/browser/quota/quota_database.h" 26 #include "storage/browser/quota/quota_database.h"
27 #include "webkit/browser/quota/quota_manager_proxy.h" 27 #include "storage/browser/quota/quota_manager_proxy.h"
28 #include "webkit/browser/quota/quota_temporary_storage_evictor.h" 28 #include "storage/browser/quota/quota_temporary_storage_evictor.h"
29 #include "webkit/browser/quota/storage_monitor.h" 29 #include "storage/browser/quota/storage_monitor.h"
30 #include "webkit/browser/quota/usage_tracker.h" 30 #include "storage/browser/quota/usage_tracker.h"
31 #include "webkit/common/quota/quota_types.h" 31 #include "storage/common/quota/quota_types.h"
32 32
33 #define UMA_HISTOGRAM_MBYTES(name, sample) \ 33 #define UMA_HISTOGRAM_MBYTES(name, sample) \
34 UMA_HISTOGRAM_CUSTOM_COUNTS( \ 34 UMA_HISTOGRAM_CUSTOM_COUNTS( \
35 (name), static_cast<int>((sample) / kMBytes), \ 35 (name), static_cast<int>((sample) / kMBytes), \
36 1, 10 * 1024 * 1024 /* 10TB */, 100) 36 1, 10 * 1024 * 1024 /* 10TB */, 100)
37 37
38 namespace storage { 38 namespace storage {
39 39
40 namespace { 40 namespace {
41 41
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 // |database_|, therefore we can be sure that database_ is alive when this 1622 // |database_|, therefore we can be sure that database_ is alive when this
1623 // task runs. 1623 // task runs.
1624 base::PostTaskAndReplyWithResult( 1624 base::PostTaskAndReplyWithResult(
1625 db_thread_.get(), 1625 db_thread_.get(),
1626 from_here, 1626 from_here,
1627 base::Bind(task, base::Unretained(database_.get())), 1627 base::Bind(task, base::Unretained(database_.get())),
1628 reply); 1628 reply);
1629 } 1629 }
1630 1630
1631 } // namespace storage 1631 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/quota/quota_manager.h ('k') | storage/browser/quota/quota_manager_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698