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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.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, 6 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/renderer_host/chrome_resource_dispatcher_host_delegate. h" 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 if (!prefetch::IsPrefetchEnabled(resource_context)) 278 if (!prefetch::IsPrefetchEnabled(resource_context))
279 return false; 279 return false;
280 } 280 }
281 281
282 return true; 282 return true;
283 } 283 }
284 284
285 void ChromeResourceDispatcherHostDelegate::RequestBeginning( 285 void ChromeResourceDispatcherHostDelegate::RequestBeginning(
286 net::URLRequest* request, 286 net::URLRequest* request,
287 content::ResourceContext* resource_context, 287 content::ResourceContext* resource_context,
288 appcache::AppCacheService* appcache_service, 288 content::AppCacheService* appcache_service,
289 ResourceType::Type resource_type, 289 ResourceType::Type resource_type,
290 int child_id, 290 int child_id,
291 int route_id, 291 int route_id,
292 ScopedVector<content::ResourceThrottle>* throttles) { 292 ScopedVector<content::ResourceThrottle>* throttles) {
293 const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request); 293 const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request);
294 bool is_prerendering = 294 bool is_prerendering =
295 info->GetVisibilityState() == blink::WebPageVisibilityStatePrerender; 295 info->GetVisibilityState() == blink::WebPageVisibilityStatePrerender;
296 if (is_prerendering) { 296 if (is_prerendering) {
297 // Requests with the IGNORE_LIMITS flag set (i.e., sync XHRs) 297 // Requests with the IGNORE_LIMITS flag set (i.e., sync XHRs)
298 // should remain at MAXIMUM_PRIORITY. 298 // should remain at MAXIMUM_PRIORITY.
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 url_request->GetTotalReceivedBytes())); 716 url_request->GetTotalReceivedBytes()));
717 } 717 }
718 } 718 }
719 719
720 // static 720 // static
721 void ChromeResourceDispatcherHostDelegate:: 721 void ChromeResourceDispatcherHostDelegate::
722 SetExternalProtocolHandlerDelegateForTesting( 722 SetExternalProtocolHandlerDelegateForTesting(
723 ExternalProtocolHandler::Delegate* delegate) { 723 ExternalProtocolHandler::Delegate* delegate) {
724 g_external_protocol_handler_delegate = delegate; 724 g_external_protocol_handler_delegate = delegate;
725 } 725 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698