| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/appcache/appcache.h" | 5 #include "content/browser/appcache/appcache.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "webkit/browser/appcache/appcache_executable_handler.h" | 11 #include "content/browser/appcache/appcache_executable_handler.h" |
| 12 #include "webkit/browser/appcache/appcache_group.h" | 12 #include "content/browser/appcache/appcache_group.h" |
| 13 #include "webkit/browser/appcache/appcache_host.h" | 13 #include "content/browser/appcache/appcache_host.h" |
| 14 #include "webkit/browser/appcache/appcache_storage.h" | 14 #include "content/browser/appcache/appcache_storage.h" |
| 15 #include "webkit/common/appcache/appcache_interfaces.h" | 15 #include "content/public/common/appcache_interfaces.h" |
| 16 | 16 |
| 17 namespace appcache { | 17 namespace content { |
| 18 | 18 |
| 19 AppCache::AppCache(AppCacheStorage* storage, int64 cache_id) | 19 AppCache::AppCache(AppCacheStorage* storage, int64 cache_id) |
| 20 : cache_id_(cache_id), | 20 : cache_id_(cache_id), |
| 21 owning_group_(NULL), | 21 owning_group_(NULL), |
| 22 online_whitelist_all_(false), | 22 online_whitelist_all_(false), |
| 23 is_complete_(false), | 23 is_complete_(false), |
| 24 cache_size_(0), | 24 cache_size_(0), |
| 25 storage_(storage) { | 25 storage_(storage) { |
| 26 storage_->working_set()->AddCache(this); | 26 storage_->working_set()->AddCache(this); |
| 27 } | 27 } |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 const NamespaceVector& namespaces, | 314 const NamespaceVector& namespaces, |
| 315 const GURL& url) { | 315 const GURL& url) { |
| 316 size_t count = namespaces.size(); | 316 size_t count = namespaces.size(); |
| 317 for (size_t i = 0; i < count; ++i) { | 317 for (size_t i = 0; i < count; ++i) { |
| 318 if (namespaces[i].IsMatch(url)) | 318 if (namespaces[i].IsMatch(url)) |
| 319 return &namespaces[i]; | 319 return &namespaces[i]; |
| 320 } | 320 } |
| 321 return NULL; | 321 return NULL; |
| 322 } | 322 } |
| 323 | 323 |
| 324 } // namespace appcache | 324 } // namespace content |
| OLD | NEW |