| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browsing_data_appcache_helper.h" | 5 #include "chrome/browser/browsing_data_appcache_helper.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_thread.h" | 7 #include "chrome/browser/chrome_thread.h" |
| 8 #include "chrome/browser/net/chrome_url_request_context.h" | 8 #include "chrome/browser/net/chrome_url_request_context.h" |
| 9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profile.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 appcache::AppCacheInfoVector& appcache_infos_ = | 111 appcache::AppCacheInfoVector& appcache_infos_ = |
| 112 origin_map[manifest_url.GetOrigin()]; | 112 origin_map[manifest_url.GetOrigin()]; |
| 113 | 113 |
| 114 for (appcache::AppCacheInfoVector::iterator | 114 for (appcache::AppCacheInfoVector::iterator |
| 115 appcache = appcache_infos_.begin(); appcache != appcache_infos_.end(); | 115 appcache = appcache_infos_.begin(); appcache != appcache_infos_.end(); |
| 116 ++appcache) { | 116 ++appcache) { |
| 117 if (appcache->manifest_url == manifest_url) | 117 if (appcache->manifest_url == manifest_url) |
| 118 return; | 118 return; |
| 119 } | 119 } |
| 120 | 120 |
| 121 appcache_infos_.push_back( | 121 appcache::AppCacheInfo info; |
| 122 appcache::AppCacheInfo(manifest_url, | 122 info.manifest_url = manifest_url; |
| 123 0, | 123 appcache_infos_.push_back(info); |
| 124 base::Time(), | |
| 125 base::Time(), | |
| 126 base::Time())); | |
| 127 } | 124 } |
| 128 | 125 |
| 129 void CannedBrowsingDataAppCacheHelper::Reset() { | 126 void CannedBrowsingDataAppCacheHelper::Reset() { |
| 130 info_collection_->infos_by_origin.clear(); | 127 info_collection_->infos_by_origin.clear(); |
| 131 } | 128 } |
| 132 | 129 |
| 133 void CannedBrowsingDataAppCacheHelper::StartFetching( | 130 void CannedBrowsingDataAppCacheHelper::StartFetching( |
| 134 Callback0::Type* completion_callback) { | 131 Callback0::Type* completion_callback) { |
| 135 completion_callback->Run(); | 132 completion_callback->Run(); |
| 136 } | 133 } |
| OLD | NEW |