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

Side by Side Diff: webkit/appcache/view_appcache_internals_job.cc

Issue 5847001: net: Add namespace net to URLRequestSimpleJob. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « webkit/appcache/view_appcache_internals_job.h ('k') | webkit/blob/view_blob_internals_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "webkit/appcache/view_appcache_internals_job.h" 5 #include "webkit/appcache/view_appcache_internals_job.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/i18n/time_formatting.h" 10 #include "base/i18n/time_formatting.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return (lhs.manifest_url.spec() < rhs.manifest_url.spec()); 146 return (lhs.manifest_url.spec() < rhs.manifest_url.spec());
147 } 147 }
148 } manifest_url_comparator; 148 } manifest_url_comparator;
149 149
150 } // namespace 150 } // namespace
151 151
152 namespace appcache { 152 namespace appcache {
153 153
154 ViewAppCacheInternalsJob::ViewAppCacheInternalsJob( 154 ViewAppCacheInternalsJob::ViewAppCacheInternalsJob(
155 net::URLRequest* request, 155 net::URLRequest* request,
156 AppCacheService* service) : URLRequestSimpleJob(request), 156 AppCacheService* service)
157 appcache_service_(service) { 157 : net::URLRequestSimpleJob(request),
158 appcache_service_(service) {
158 } 159 }
159 160
160 ViewAppCacheInternalsJob::~ViewAppCacheInternalsJob() { 161 ViewAppCacheInternalsJob::~ViewAppCacheInternalsJob() {
161 // Cancel callback if job is destroyed before callback is called. 162 // Cancel callback if job is destroyed before callback is called.
162 if (appcache_done_callback_) 163 if (appcache_done_callback_)
163 appcache_done_callback_.release()->Cancel(); 164 appcache_done_callback_.release()->Cancel();
164 } 165 }
165 166
166 void ViewAppCacheInternalsJob::GetAppCacheInfoAsync() { 167 void ViewAppCacheInternalsJob::GetAppCacheInfoAsync() {
167 info_collection_ = new AppCacheInfoCollection; 168 info_collection_ = new AppCacheInfoCollection;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 data->append(kErrorMessage); 251 data->append(kErrorMessage);
251 else if (info_collection_->infos_by_origin.empty()) 252 else if (info_collection_->infos_by_origin.empty())
252 data->append(kEmptyAppCachesMessage); 253 data->append(kEmptyAppCachesMessage);
253 else 254 else
254 GenerateHTMLAppCacheInfo(data); 255 GenerateHTMLAppCacheInfo(data);
255 EndHTML(data); 256 EndHTML(data);
256 return true; 257 return true;
257 } 258 }
258 259
259 } // namespace appcache 260 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/view_appcache_internals_job.h ('k') | webkit/blob/view_blob_internals_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698