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 "webkit/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/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "webkit/browser/appcache/appcache_group.h" | 11 #include "webkit/browser/appcache/appcache_group.h" |
12 #include "webkit/browser/appcache/appcache_host.h" | 12 #include "webkit/browser/appcache/appcache_host.h" |
13 #include "webkit/browser/appcache/appcache_storage.h" | 13 #include "webkit/browser/appcache/appcache_storage.h" |
14 #include "webkit/common/appcache/appcache_interfaces.h" | 14 #include "webkit/common/appcache/appcache_interfaces.h" |
15 | 15 |
16 namespace appcache { | 16 namespace appcache { |
17 | 17 |
18 AppCache::AppCache(AppCacheStorage* storage, int64 cache_id) | 18 AppCache::AppCache(AppCacheStorage* storage, int64 cache_id) |
19 : cache_id_(cache_id), | 19 : cache_id_(cache_id), |
20 owning_group_(NULL), | 20 owning_group_(NULL), |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 const GURL& url) { | 278 const GURL& url) { |
279 size_t count = namespaces.size(); | 279 size_t count = namespaces.size(); |
280 for (size_t i = 0; i < count; ++i) { | 280 for (size_t i = 0; i < count; ++i) { |
281 if (namespaces[i].IsMatch(url)) | 281 if (namespaces[i].IsMatch(url)) |
282 return &namespaces[i]; | 282 return &namespaces[i]; |
283 } | 283 } |
284 return NULL; | 284 return NULL; |
285 } | 285 } |
286 | 286 |
287 } // namespace appcache | 287 } // namespace appcache |
OLD | NEW |