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

Side by Side Diff: content/child/appcache/web_application_cache_host_impl.cc

Issue 615823002: Temporarily remove didReceiveDataForMainResource() implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed #4 Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/child/appcache/web_application_cache_host_impl.h" 5 #include "content/child/appcache/web_application_cache_host_impl.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 if (document_url_ != original_main_resource_url_) 248 if (document_url_ != original_main_resource_url_)
249 is_get_method_ = true; // A redirect was involved. 249 is_get_method_ = true; // A redirect was involved.
250 original_main_resource_url_ = GURL(); 250 original_main_resource_url_ = GURL();
251 251
252 is_scheme_supported_ = IsSchemeSupportedForAppCache(document_url_); 252 is_scheme_supported_ = IsSchemeSupportedForAppCache(document_url_);
253 if ((document_response_.appCacheID() != kAppCacheNoCacheId) || 253 if ((document_response_.appCacheID() != kAppCacheNoCacheId) ||
254 !is_scheme_supported_ || !is_get_method_) 254 !is_scheme_supported_ || !is_get_method_)
255 is_new_master_entry_ = NO; 255 is_new_master_entry_ = NO;
256 } 256 }
257 257
258 void WebApplicationCacheHostImpl::didReceiveDataForMainResource(
259 const char* data, int len) {
260 if (is_new_master_entry_ == NO)
261 return;
262 // TODO(michaeln): write me
263 }
264
265 void WebApplicationCacheHostImpl::didFinishLoadingMainResource(bool success) { 258 void WebApplicationCacheHostImpl::didFinishLoadingMainResource(bool success) {
266 if (is_new_master_entry_ == NO) 259 if (is_new_master_entry_ == NO)
267 return; 260 return;
268 // TODO(michaeln): write me 261 // TODO(michaeln): write me
269 } 262 }
270 263
271 WebApplicationCacheHost::Status WebApplicationCacheHostImpl::status() { 264 WebApplicationCacheHost::Status WebApplicationCacheHostImpl::status() {
272 return static_cast<WebApplicationCacheHost::Status>(status_); 265 return static_cast<WebApplicationCacheHost::Status>(status_);
273 } 266 }
274 267
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 web_resources[i].isExplicit = resource_infos[i].is_explicit; 307 web_resources[i].isExplicit = resource_infos[i].is_explicit;
315 web_resources[i].isManifest = resource_infos[i].is_manifest; 308 web_resources[i].isManifest = resource_infos[i].is_manifest;
316 web_resources[i].isForeign = resource_infos[i].is_foreign; 309 web_resources[i].isForeign = resource_infos[i].is_foreign;
317 web_resources[i].isFallback = resource_infos[i].is_fallback; 310 web_resources[i].isFallback = resource_infos[i].is_fallback;
318 web_resources[i].url = resource_infos[i].url; 311 web_resources[i].url = resource_infos[i].url;
319 } 312 }
320 resources->swap(web_resources); 313 resources->swap(web_resources);
321 } 314 }
322 315
323 } // namespace content 316 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698