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

Side by Side Diff: storage/browser/quota/usage_tracker.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/usage_tracker.h ('k') | storage/browser/storage_browser_export.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/usage_tracker.h" 5 #include "storage/browser/quota/usage_tracker.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/message_loop/message_loop_proxy.h" 14 #include "base/message_loop/message_loop_proxy.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "net/base/net_util.h" 16 #include "net/base/net_util.h"
17 #include "webkit/browser/quota/storage_monitor.h" 17 #include "storage/browser/quota/storage_monitor.h"
18 #include "webkit/browser/quota/storage_observer.h" 18 #include "storage/browser/quota/storage_observer.h"
19 19
20 namespace storage { 20 namespace storage {
21 21
22 namespace { 22 namespace {
23 23
24 typedef ClientUsageTracker::OriginUsageAccumulator OriginUsageAccumulator; 24 typedef ClientUsageTracker::OriginUsageAccumulator OriginUsageAccumulator;
25 typedef ClientUsageTracker::OriginSetByHost OriginSetByHost; 25 typedef ClientUsageTracker::OriginSetByHost OriginSetByHost;
26 26
27 void DidGetOriginUsage(const OriginUsageAccumulator& accumulator, 27 void DidGetOriginUsage(const OriginUsageAccumulator& accumulator,
28 const GURL& origin, 28 const GURL& origin,
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 } 685 }
686 686
687 bool ClientUsageTracker::IsStorageUnlimited(const GURL& origin) const { 687 bool ClientUsageTracker::IsStorageUnlimited(const GURL& origin) const {
688 if (type_ == kStorageTypeSyncable) 688 if (type_ == kStorageTypeSyncable)
689 return false; 689 return false;
690 return special_storage_policy_.get() && 690 return special_storage_policy_.get() &&
691 special_storage_policy_->IsStorageUnlimited(origin); 691 special_storage_policy_->IsStorageUnlimited(origin);
692 } 692 }
693 693
694 } // namespace storage 694 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/quota/usage_tracker.h ('k') | storage/browser/storage_browser_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698