| 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_service.h" | 5 #include "webkit/appcache/appcache_service.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
| 10 #include "webkit/appcache/appcache_backend_impl.h" | 10 #include "webkit/appcache/appcache_backend_impl.h" |
| 11 #include "webkit/appcache/appcache_storage_impl.h" | 11 #include "webkit/appcache/appcache_storage_impl.h" |
| 12 | 12 |
| 13 namespace appcache { | 13 namespace appcache { |
| 14 | 14 |
| 15 AppCacheInfoCollection::AppCacheInfoCollection() {} |
| 16 |
| 17 AppCacheInfoCollection::~AppCacheInfoCollection() {} |
| 18 |
| 15 // AsyncHelper ------- | 19 // AsyncHelper ------- |
| 16 | 20 |
| 17 class AppCacheService::AsyncHelper | 21 class AppCacheService::AsyncHelper |
| 18 : public AppCacheStorage::Delegate { | 22 : public AppCacheStorage::Delegate { |
| 19 public: | 23 public: |
| 20 AsyncHelper( | 24 AsyncHelper( |
| 21 AppCacheService* service, net::CompletionCallback* callback) | 25 AppCacheService* service, net::CompletionCallback* callback) |
| 22 : service_(service), callback_(callback) { | 26 : service_(service), callback_(callback) { |
| 23 service_->pending_helpers_.insert(this); | 27 service_->pending_helpers_.insert(this); |
| 24 } | 28 } |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 backends_.insert( | 174 backends_.insert( |
| 171 BackendMap::value_type(backend_impl->process_id(), backend_impl)); | 175 BackendMap::value_type(backend_impl->process_id(), backend_impl)); |
| 172 } | 176 } |
| 173 | 177 |
| 174 void AppCacheService::UnregisterBackend( | 178 void AppCacheService::UnregisterBackend( |
| 175 AppCacheBackendImpl* backend_impl) { | 179 AppCacheBackendImpl* backend_impl) { |
| 176 backends_.erase(backend_impl->process_id()); | 180 backends_.erase(backend_impl->process_id()); |
| 177 } | 181 } |
| 178 | 182 |
| 179 } // namespace appcache | 183 } // namespace appcache |
| OLD | NEW |