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

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

Issue 207603003: Extract RequestInfo struct from ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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
« no previous file with comments | « content/test/test_webkit_platform_support.h ('k') | webkit/child/resource_loader_bridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 228
229 base::StringPiece TestWebKitPlatformSupport::GetDataResource( 229 base::StringPiece TestWebKitPlatformSupport::GetDataResource(
230 int resource_id, 230 int resource_id,
231 ui::ScaleFactor scale_factor) { 231 ui::ScaleFactor scale_factor) {
232 return base::StringPiece(); 232 return base::StringPiece();
233 } 233 }
234 234
235 webkit_glue::ResourceLoaderBridge* 235 webkit_glue::ResourceLoaderBridge*
236 TestWebKitPlatformSupport::CreateResourceLoader( 236 TestWebKitPlatformSupport::CreateResourceLoader(
237 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 237 const RequestInfo& request_info) {
238 NOTREACHED(); 238 NOTREACHED();
239 return NULL; 239 return NULL;
240 } 240 }
241 241
242 WebSocketStreamHandleBridge* 242 WebSocketStreamHandleBridge*
243 TestWebKitPlatformSupport::CreateWebSocketStreamBridge( 243 TestWebKitPlatformSupport::CreateWebSocketStreamBridge(
244 blink::WebSocketStreamHandle* handle, 244 blink::WebSocketStreamHandle* handle,
245 WebSocketStreamHandleDelegate* delegate) { 245 WebSocketStreamHandleDelegate* delegate) {
246 NOTREACHED(); 246 NOTREACHED();
247 return NULL; 247 return NULL;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 const blink::WebString& path) { 315 const blink::WebString& path) {
316 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); 316 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path);
317 317
318 std::string buffer; 318 std::string buffer;
319 base::ReadFileToString(file_path, &buffer); 319 base::ReadFileToString(file_path, &buffer);
320 320
321 return blink::WebData(buffer.data(), buffer.size()); 321 return blink::WebData(buffer.data(), buffer.size());
322 } 322 }
323 323
324 } // namespace content 324 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_webkit_platform_support.h ('k') | webkit/child/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698