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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 10553010: Rename IPC::Channel and IPC::Sender in src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 bool ChromeResourceDispatcherHostDelegate::ShouldForceDownloadResource( 309 bool ChromeResourceDispatcherHostDelegate::ShouldForceDownloadResource(
310 const GURL& url, const std::string& mime_type) { 310 const GURL& url, const std::string& mime_type) {
311 // Special-case user scripts to get downloaded instead of viewed. 311 // Special-case user scripts to get downloaded instead of viewed.
312 return UserScript::IsURLUserScript(url, mime_type); 312 return UserScript::IsURLUserScript(url, mime_type);
313 } 313 }
314 314
315 void ChromeResourceDispatcherHostDelegate::OnResponseStarted( 315 void ChromeResourceDispatcherHostDelegate::OnResponseStarted(
316 net::URLRequest* request, 316 net::URLRequest* request,
317 content::ResourceResponse* response, 317 content::ResourceResponse* response,
318 IPC::Message::Sender* sender) { 318 IPC::Sender* sender) {
319 LoadTimingObserver::PopulateTimingInfo(request, response); 319 LoadTimingObserver::PopulateTimingInfo(request, response);
320 320
321 const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request); 321 const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request);
322 322
323 if (request->url().SchemeIsSecure()) { 323 if (request->url().SchemeIsSecure()) {
324 const net::URLRequestContext* context = request->context(); 324 const net::URLRequestContext* context = request->context();
325 net::TransportSecurityState* state = context->transport_security_state(); 325 net::TransportSecurityState* state = context->transport_security_state();
326 if (state) { 326 if (state) {
327 net::TransportSecurityState::DomainState domain_state; 327 net::TransportSecurityState::DomainState domain_state;
328 bool has_sni = net::SSLConfigService::IsSNIAvailable( 328 bool has_sni = net::SSLConfigService::IsSNIAvailable(
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 if (base::Base64Encode(serialized, &hashed)) { 410 if (base::Base64Encode(serialized, &hashed)) {
411 // If successful, swap the header value with the new one. 411 // If successful, swap the header value with the new one.
412 // Note that the list of IDs and the header could be temporarily out of sync 412 // Note that the list of IDs and the header could be temporarily out of sync
413 // if IDs are added as we are recreating the header, but we're OK with those 413 // if IDs are added as we are recreating the header, but we're OK with those
414 // descrepancies. 414 // descrepancies.
415 variation_ids_header_ = hashed; 415 variation_ids_header_ = hashed;
416 } else { 416 } else {
417 DVLOG(1) << "Failed to base64 encode Variation IDs value: " << serialized; 417 DVLOG(1) << "Failed to base64 encode Variation IDs value: " << serialized;
418 } 418 }
419 } 419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698