OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |