Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / webkit / quota / special_storage_policy.cc
blob84812396d85f9e5998ebceecdc5c73ec5b201387
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "webkit/quota/special_storage_policy.h"
7 namespace quota {
9 SpecialStoragePolicy::Observer::~Observer() {}
11 SpecialStoragePolicy::SpecialStoragePolicy() {}
13 SpecialStoragePolicy::~SpecialStoragePolicy() {}
15 void SpecialStoragePolicy::AddObserver(Observer* observer) {
16 observers_.AddObserver(observer);
19 void SpecialStoragePolicy::RemoveObserver(Observer* observer) {
20 observers_.RemoveObserver(observer);
23 void SpecialStoragePolicy::NotifyObservers() {
24 scoped_refptr<SpecialStoragePolicy> protect(this);
25 FOR_EACH_OBSERVER(Observer, observers_, OnSpecialStoragePolicyChanged());
28 } // namespace quota