This source file includes following definitions.
- AddObserver
- RemoveObserver
- NotifyGranted
- NotifyRevoked
- NotifyCleared
#include "webkit/browser/quota/special_storage_policy.h"
namespace quota {
SpecialStoragePolicy::Observer::~Observer() {}
SpecialStoragePolicy::SpecialStoragePolicy() {}
SpecialStoragePolicy::~SpecialStoragePolicy() {}
void SpecialStoragePolicy::AddObserver(Observer* observer) {
observers_.AddObserver(observer);
}
void SpecialStoragePolicy::RemoveObserver(Observer* observer) {
observers_.RemoveObserver(observer);
}
void SpecialStoragePolicy::NotifyGranted(const GURL& origin, int change_flags) {
scoped_refptr<SpecialStoragePolicy> protect(this);
FOR_EACH_OBSERVER(Observer, observers_, OnGranted(origin, change_flags));
}
void SpecialStoragePolicy::NotifyRevoked(const GURL& origin, int change_flags) {
scoped_refptr<SpecialStoragePolicy> protect(this);
FOR_EACH_OBSERVER(Observer, observers_, OnRevoked(origin, change_flags));
}
void SpecialStoragePolicy::NotifyCleared() {
scoped_refptr<SpecialStoragePolicy> protect(this);
FOR_EACH_OBSERVER(Observer, observers_, OnCleared());
}
}