OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 url.SchemeIs(chrome::kDataScheme) || | 222 url.SchemeIs(chrome::kDataScheme) || |
223 url.SchemeIs(chrome::kExtensionScheme) || | 223 url.SchemeIs(chrome::kExtensionScheme) || |
224 url.SchemeIs(chrome::kBlobScheme)) | 224 url.SchemeIs(chrome::kBlobScheme)) |
225 return true; | 225 return true; |
226 return false; | 226 return false; |
227 } | 227 } |
228 | 228 |
229 // static factory function | 229 // static factory function |
230 ResourceLoaderBridge* ResourceLoaderBridge::Create( | 230 ResourceLoaderBridge* ResourceLoaderBridge::Create( |
231 const ResourceLoaderBridge::RequestInfo& request_info) { | 231 const ResourceLoaderBridge::RequestInfo& request_info) { |
232 return ChildThread::current()->CreateBridge(request_info, -1, -1); | 232 return ChildThread::current()->CreateBridge(request_info); |
233 } | 233 } |
234 | 234 |
235 // static factory function | 235 // static factory function |
236 WebSocketStreamHandleBridge* WebSocketStreamHandleBridge::Create( | 236 WebSocketStreamHandleBridge* WebSocketStreamHandleBridge::Create( |
237 WebKit::WebSocketStreamHandle* handle, | 237 WebKit::WebSocketStreamHandle* handle, |
238 WebSocketStreamHandleDelegate* delegate) { | 238 WebSocketStreamHandleDelegate* delegate) { |
239 SocketStreamDispatcher* dispatcher = | 239 SocketStreamDispatcher* dispatcher = |
240 ChildThread::current()->socket_stream_dispatcher(); | 240 ChildThread::current()->socket_stream_dispatcher(); |
241 return dispatcher->CreateBridge(handle, delegate); | 241 return dispatcher->CreateBridge(handle, delegate); |
242 } | 242 } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 } | 306 } |
307 | 307 |
308 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 308 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
309 size_t* output_length) { | 309 size_t* output_length) { |
310 return renderer_sandbox_support::GetFontTable( | 310 return renderer_sandbox_support::GetFontTable( |
311 fd, table, output, output_length); | 311 fd, table, output, output_length); |
312 } | 312 } |
313 #endif | 313 #endif |
314 | 314 |
315 } // namespace webkit_glue | 315 } // namespace webkit_glue |
OLD | NEW |