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

Side by Side Diff: webkit/tools/test_shell/simple_resource_loader_bridge.cc

Issue 9188019: Cleanup: Rename is_hsts_host to fatal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « webkit/fileapi/file_writer_delegate.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains an implementation of the ResourceLoaderBridge class. 5 // This file contains an implementation of the ResourceLoaderBridge class.
6 // The class is implemented using net::URLRequest, meaning it is a "simple" 6 // The class is implemented using net::URLRequest, meaning it is a "simple"
7 // version that directly issues requests. The more complicated one used in the 7 // version that directly issues requests. The more complicated one used in the
8 // browser uses IPC. 8 // browser uses IPC.
9 // 9 //
10 // Because net::URLRequest only provides an asynchronous resource loading API, 10 // Because net::URLRequest only provides an asynchronous resource loading API,
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 OnReceivedResponse(info); 458 OnReceivedResponse(info);
459 AsyncReadData(); // start reading 459 AsyncReadData(); // start reading
460 } 460 }
461 } else { 461 } else {
462 Done(); 462 Done();
463 } 463 }
464 } 464 }
465 465
466 virtual void OnSSLCertificateError(net::URLRequest* request, 466 virtual void OnSSLCertificateError(net::URLRequest* request,
467 const net::SSLInfo& ssl_info, 467 const net::SSLInfo& ssl_info,
468 bool is_hsts_host) OVERRIDE { 468 bool fatal) OVERRIDE {
469 // Allow all certificate errors. 469 // Allow all certificate errors.
470 request->ContinueDespiteLastError(); 470 request->ContinueDespiteLastError();
471 } 471 }
472 472
473 virtual bool CanGetCookies( 473 virtual bool CanGetCookies(
474 const net::URLRequest* request, 474 const net::URLRequest* request,
475 const net::CookieList& cookie_list) const OVERRIDE { 475 const net::CookieList& cookie_list) const OVERRIDE {
476 StaticCookiePolicy::Type policy_type = g_accept_all_cookies ? 476 StaticCookiePolicy::Type policy_type = g_accept_all_cookies ?
477 StaticCookiePolicy::ALLOW_ALL_COOKIES : 477 StaticCookiePolicy::ALLOW_ALL_COOKIES :
478 StaticCookiePolicy::BLOCK_SETTING_THIRD_PARTY_COOKIES; 478 StaticCookiePolicy::BLOCK_SETTING_THIRD_PARTY_COOKIES;
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 (http_prefix.SchemeIs("http") || http_prefix.SchemeIs("https"))); 1032 (http_prefix.SchemeIs("http") || http_prefix.SchemeIs("https")));
1033 g_file_over_http_params = new FileOverHTTPParams(file_path_template, 1033 g_file_over_http_params = new FileOverHTTPParams(file_path_template,
1034 http_prefix); 1034 http_prefix);
1035 } 1035 }
1036 1036
1037 // static 1037 // static
1038 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create( 1038 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create(
1039 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 1039 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
1040 return new ResourceLoaderBridgeImpl(request_info); 1040 return new ResourceLoaderBridgeImpl(request_info);
1041 } 1041 }
OLDNEW
« no previous file with comments | « webkit/fileapi/file_writer_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698