Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Side by Side Diff: chrome/browser/browsing_data/local_data_container.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/browsing_data/local_data_container.h" 5 #include "chrome/browser/browsing_data/local_data_container.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/linked_ptr.h" 8 #include "base/memory/linked_ptr.h"
9 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h"
10 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h" 10 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 if (flash_lso_helper_.get()) { 103 if (flash_lso_helper_.get()) {
104 flash_lso_helper_->StartFetching( 104 flash_lso_helper_->StartFetching(
105 base::Bind(&LocalDataContainer::OnFlashLSOInfoLoaded, 105 base::Bind(&LocalDataContainer::OnFlashLSOInfoLoaded,
106 weak_ptr_factory_.GetWeakPtr())); 106 weak_ptr_factory_.GetWeakPtr()));
107 } 107 }
108 } 108 }
109 109
110 void LocalDataContainer::OnAppCacheModelInfoLoaded() { 110 void LocalDataContainer::OnAppCacheModelInfoLoaded() {
111 using appcache::AppCacheInfo; 111 using content::AppCacheInfo;
112 using appcache::AppCacheInfoCollection; 112 using content::AppCacheInfoCollection;
113 using appcache::AppCacheInfoVector; 113 using content::AppCacheInfoVector;
114 typedef std::map<GURL, AppCacheInfoVector> InfoByOrigin; 114 typedef std::map<GURL, AppCacheInfoVector> InfoByOrigin;
115 115
116 scoped_refptr<AppCacheInfoCollection> appcache_info = 116 scoped_refptr<AppCacheInfoCollection> appcache_info =
117 appcache_helper_->info_collection(); 117 appcache_helper_->info_collection();
118 if (!appcache_info.get() || appcache_info->infos_by_origin.empty()) 118 if (!appcache_info.get() || appcache_info->infos_by_origin.empty())
119 return; 119 return;
120 120
121 for (InfoByOrigin::const_iterator origin = 121 for (InfoByOrigin::const_iterator origin =
122 appcache_info->infos_by_origin.begin(); 122 appcache_info->infos_by_origin.begin();
123 origin != appcache_info->infos_by_origin.end(); ++origin) { 123 origin != appcache_info->infos_by_origin.end(); ++origin) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 DCHECK(model_); 186 DCHECK(model_);
187 model_->PopulateServerBoundCertInfo(this); 187 model_->PopulateServerBoundCertInfo(this);
188 } 188 }
189 189
190 void LocalDataContainer::OnFlashLSOInfoLoaded( 190 void LocalDataContainer::OnFlashLSOInfoLoaded(
191 const FlashLSODomainList& domains) { 191 const FlashLSODomainList& domains) {
192 flash_lso_domain_list_ = domains; 192 flash_lso_domain_list_ = domains;
193 DCHECK(model_); 193 DCHECK(model_);
194 model_->PopulateFlashLSOInfo(this); 194 model_->PopulateFlashLSOInfo(this);
195 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698