OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/appcache/appcache_storage.h" | 5 #include "webkit/appcache/appcache_storage.h" |
6 | 6 |
7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
8 #include "webkit/appcache/appcache_response.h" | 8 #include "webkit/appcache/appcache_response.h" |
9 #include "webkit/appcache/appcache_service.h" | 9 #include "webkit/appcache/appcache_service.h" |
10 #include "webkit/quota/quota_client.h" | 10 #include "webkit/quota/quota_client.h" |
11 #include "webkit/quota/quota_manager.h" | 11 #include "webkit/quota/quota_manager.h" |
12 | 12 |
13 namespace appcache { | 13 namespace appcache { |
14 | 14 |
15 // static | 15 // static |
16 const int64 AppCacheStorage::kUnitializedId = -1; | 16 const int64 AppCacheStorage::kUnitializedId = -1; |
17 | 17 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void AppCacheStorage::NotifyStorageAccessed(const GURL& origin) { | 122 void AppCacheStorage::NotifyStorageAccessed(const GURL& origin) { |
123 if (service()->quota_manager_proxy() && | 123 if (service()->quota_manager_proxy() && |
124 usage_map_.find(origin) != usage_map_.end()) | 124 usage_map_.find(origin) != usage_map_.end()) |
125 service()->quota_manager_proxy()->NotifyStorageAccessed( | 125 service()->quota_manager_proxy()->NotifyStorageAccessed( |
126 quota::QuotaClient::kAppcache, | 126 quota::QuotaClient::kAppcache, |
127 origin, quota::kStorageTypeTemporary); | 127 origin, quota::kStorageTypeTemporary); |
128 } | 128 } |
129 | 129 |
130 } // namespace appcache | 130 } // namespace appcache |
131 | 131 |
OLD | NEW |