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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | « storage/browser/quota/special_storage_policy.h ('k') | storage/browser/quota/storage_monitor.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/special_storage_policy.h" 5 #include "storage/browser/quota/special_storage_policy.h"
6 6
7 namespace quota { 7 namespace quota {
8 8
9 SpecialStoragePolicy::Observer::~Observer() {} 9 SpecialStoragePolicy::Observer::~Observer() {
10 }
10 11
11 SpecialStoragePolicy::SpecialStoragePolicy() {} 12 SpecialStoragePolicy::SpecialStoragePolicy() {
13 }
12 14
13 SpecialStoragePolicy::~SpecialStoragePolicy() {} 15 SpecialStoragePolicy::~SpecialStoragePolicy() {
16 }
14 17
15 void SpecialStoragePolicy::AddObserver(Observer* observer) { 18 void SpecialStoragePolicy::AddObserver(Observer* observer) {
16 observers_.AddObserver(observer); 19 observers_.AddObserver(observer);
17 } 20 }
18 21
19 void SpecialStoragePolicy::RemoveObserver(Observer* observer) { 22 void SpecialStoragePolicy::RemoveObserver(Observer* observer) {
20 observers_.RemoveObserver(observer); 23 observers_.RemoveObserver(observer);
21 } 24 }
22 25
23 void SpecialStoragePolicy::NotifyGranted(const GURL& origin, int change_flags) { 26 void SpecialStoragePolicy::NotifyGranted(const GURL& origin, int change_flags) {
24 scoped_refptr<SpecialStoragePolicy> protect(this); 27 scoped_refptr<SpecialStoragePolicy> protect(this);
25 FOR_EACH_OBSERVER(Observer, observers_, OnGranted(origin, change_flags)); 28 FOR_EACH_OBSERVER(Observer, observers_, OnGranted(origin, change_flags));
26 } 29 }
27 30
28 void SpecialStoragePolicy::NotifyRevoked(const GURL& origin, int change_flags) { 31 void SpecialStoragePolicy::NotifyRevoked(const GURL& origin, int change_flags) {
29 scoped_refptr<SpecialStoragePolicy> protect(this); 32 scoped_refptr<SpecialStoragePolicy> protect(this);
30 FOR_EACH_OBSERVER(Observer, observers_, OnRevoked(origin, change_flags)); 33 FOR_EACH_OBSERVER(Observer, observers_, OnRevoked(origin, change_flags));
31 } 34 }
32 35
33 void SpecialStoragePolicy::NotifyCleared() { 36 void SpecialStoragePolicy::NotifyCleared() {
34 scoped_refptr<SpecialStoragePolicy> protect(this); 37 scoped_refptr<SpecialStoragePolicy> protect(this);
35 FOR_EACH_OBSERVER(Observer, observers_, OnCleared()); 38 FOR_EACH_OBSERVER(Observer, observers_, OnCleared());
36 } 39 }
37 40
38 } // namespace quota 41 } // namespace quota
OLDNEW
« no previous file with comments | « storage/browser/quota/special_storage_policy.h ('k') | storage/browser/quota/storage_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698