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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |