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

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

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 {}
144 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE {} 144 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE {}
145 145
146 virtual void OnPACScriptError(int line_number, 146 virtual void OnPACScriptError(int line_number,
147 const string16& error) OVERRIDE { 147 const base::string16& error) OVERRIDE {
148 } 148 }
149 virtual AuthRequiredResponse OnAuthRequired( 149 virtual AuthRequiredResponse OnAuthRequired(
150 net::URLRequest* request, 150 net::URLRequest* request,
151 const net::AuthChallengeInfo& auth_info, 151 const net::AuthChallengeInfo& auth_info,
152 const AuthCallback& callback, 152 const AuthCallback& callback,
153 net::AuthCredentials* credentials) OVERRIDE { 153 net::AuthCredentials* credentials) OVERRIDE {
154 return AUTH_REQUIRED_RESPONSE_NO_ACTION; 154 return AUTH_REQUIRED_RESPONSE_NO_ACTION;
155 } 155 }
156 virtual bool OnCanGetCookies(const net::URLRequest& request, 156 virtual bool OnCanGetCookies(const net::URLRequest& request,
157 const net::CookieList& cookie_list) OVERRIDE { 157 const net::CookieList& cookie_list) OVERRIDE {
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 if (!g_file_over_http_mappings) 1157 if (!g_file_over_http_mappings)
1158 g_file_over_http_mappings = new FileOverHTTPPathMappings(); 1158 g_file_over_http_mappings = new FileOverHTTPPathMappings();
1159 g_file_over_http_mappings->AddMapping(file_path_template, http_prefix); 1159 g_file_over_http_mappings->AddMapping(file_path_template, http_prefix);
1160 } 1160 }
1161 1161
1162 // static 1162 // static
1163 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create( 1163 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create(
1164 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 1164 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
1165 return new ResourceLoaderBridgeImpl(request_info); 1165 return new ResourceLoaderBridgeImpl(request_info);
1166 } 1166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698