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

Side by Side Diff: content/test/test_webkit_platform_support.cc

Issue 186193005: Move resource_loader_bridge to content/public/child/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/test/test_webkit_platform_support.h" 5 #include "content/test/test_webkit_platform_support.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 base::string16 TestWebKitPlatformSupport::GetLocalizedString(int message_id) { 216 base::string16 TestWebKitPlatformSupport::GetLocalizedString(int message_id) {
217 return base::string16(); 217 return base::string16();
218 } 218 }
219 219
220 base::StringPiece TestWebKitPlatformSupport::GetDataResource( 220 base::StringPiece TestWebKitPlatformSupport::GetDataResource(
221 int resource_id, 221 int resource_id,
222 ui::ScaleFactor scale_factor) { 222 ui::ScaleFactor scale_factor) {
223 return base::StringPiece(); 223 return base::StringPiece();
224 } 224 }
225 225
226 webkit_glue::ResourceLoaderBridge* 226 ResourceLoaderBridge* TestWebKitPlatformSupport::CreateResourceLoader(
227 TestWebKitPlatformSupport::CreateResourceLoader( 227 const ResourceLoaderBridge::RequestInfo& request_info) {
228 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
229 NOTREACHED(); 228 NOTREACHED();
230 return NULL; 229 return NULL;
231 } 230 }
232 231
233 WebSocketStreamHandleBridge* 232 WebSocketStreamHandleBridge*
234 TestWebKitPlatformSupport::CreateWebSocketStreamBridge( 233 TestWebKitPlatformSupport::CreateWebSocketStreamBridge(
235 blink::WebSocketStreamHandle* handle, 234 blink::WebSocketStreamHandle* handle,
236 WebSocketStreamHandleDelegate* delegate) { 235 WebSocketStreamHandleDelegate* delegate) {
237 NOTREACHED(); 236 NOTREACHED();
238 return NULL; 237 return NULL;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 const blink::WebString& path) { 305 const blink::WebString& path) {
307 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); 306 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path);
308 307
309 std::string buffer; 308 std::string buffer;
310 base::ReadFileToString(file_path, &buffer); 309 base::ReadFileToString(file_path, &buffer);
311 310
312 return blink::WebData(buffer.data(), buffer.size()); 311 return blink::WebData(buffer.data(), buffer.size());
313 } 312 }
314 313
315 } // namespace content 314 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698