| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/storage_monitor.h" | 5 #include "webkit/browser/quota/storage_monitor.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "net/base/net_util.h" | 10 #include "net/base/net_util.h" |
| 11 #include "webkit/browser/quota/quota_manager.h" | 11 #include "webkit/browser/quota/quota_manager.h" |
| 12 #include "webkit/common/quota/quota_status_code.h" | 12 #include "webkit/common/quota/quota_status_code.h" |
| 13 | 13 |
| 14 namespace quota { | 14 namespace storage { |
| 15 | 15 |
| 16 // StorageObserverList: | 16 // StorageObserverList: |
| 17 | 17 |
| 18 StorageObserverList::ObserverState::ObserverState() | 18 StorageObserverList::ObserverState::ObserverState() |
| 19 : requires_update(false) { | 19 : requires_update(false) { |
| 20 } | 20 } |
| 21 | 21 |
| 22 StorageObserverList::StorageObserverList() {} | 22 StorageObserverList::StorageObserverList() {} |
| 23 | 23 |
| 24 StorageObserverList::~StorageObserverList() {} | 24 StorageObserverList::~StorageObserverList() {} |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 } | 369 } |
| 370 | 370 |
| 371 StorageTypeObserversMap::iterator it = | 371 StorageTypeObserversMap::iterator it = |
| 372 storage_type_observers_map_.find(filter.storage_type); | 372 storage_type_observers_map_.find(filter.storage_type); |
| 373 if (it == storage_type_observers_map_.end()) | 373 if (it == storage_type_observers_map_.end()) |
| 374 return; | 374 return; |
| 375 | 375 |
| 376 it->second->NotifyUsageChange(filter, delta); | 376 it->second->NotifyUsageChange(filter, delta); |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace quota | 379 } // namespace storage |
| OLD | NEW |