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

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

Issue 10944013: Make original_response_headers parameter of NetworkDelegate::OnHeadersReceived const (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 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 | 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 // 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual int OnBeforeSendHeaders(net::URLRequest* request, 123 virtual int OnBeforeSendHeaders(net::URLRequest* request,
124 const net::CompletionCallback& callback, 124 const net::CompletionCallback& callback,
125 net::HttpRequestHeaders* headers) OVERRIDE { 125 net::HttpRequestHeaders* headers) OVERRIDE {
126 return net::OK; 126 return net::OK;
127 } 127 }
128 virtual void OnSendHeaders(net::URLRequest* request, 128 virtual void OnSendHeaders(net::URLRequest* request,
129 const net::HttpRequestHeaders& headers) OVERRIDE {} 129 const net::HttpRequestHeaders& headers) OVERRIDE {}
130 virtual int OnHeadersReceived( 130 virtual int OnHeadersReceived(
131 net::URLRequest* request, 131 net::URLRequest* request,
132 const net::CompletionCallback& callback, 132 const net::CompletionCallback& callback,
133 net::HttpResponseHeaders* original_response_headers, 133 const net::HttpResponseHeaders* original_response_headers,
134 scoped_refptr<net::HttpResponseHeaders>* 134 scoped_refptr<net::HttpResponseHeaders>*
135 override_response_headers) OVERRIDE { 135 override_response_headers) OVERRIDE {
136 return net::OK; 136 return net::OK;
137 } 137 }
138 virtual void OnBeforeRedirect(net::URLRequest* request, 138 virtual void OnBeforeRedirect(net::URLRequest* request,
139 const GURL& new_location) OVERRIDE {} 139 const GURL& new_location) OVERRIDE {}
140 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE {} 140 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE {}
141 virtual void OnRawBytesRead(const net::URLRequest& request, 141 virtual void OnRawBytesRead(const net::URLRequest& request,
142 int bytes_read) OVERRIDE {} 142 int bytes_read) OVERRIDE {}
143 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE {} 143 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE {}
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 (http_prefix.SchemeIs("http") || http_prefix.SchemeIs("https"))); 1107 (http_prefix.SchemeIs("http") || http_prefix.SchemeIs("https")));
1108 g_file_over_http_params = new FileOverHTTPParams(file_path_template, 1108 g_file_over_http_params = new FileOverHTTPParams(file_path_template,
1109 http_prefix); 1109 http_prefix);
1110 } 1110 }
1111 1111
1112 // static 1112 // static
1113 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create( 1113 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create(
1114 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 1114 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
1115 return new ResourceLoaderBridgeImpl(request_info); 1115 return new ResourceLoaderBridgeImpl(request_info);
1116 } 1116 }
OLDNEW
« net/base/network_delegate.h ('K') | « net/url_request/url_request_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698