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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 url.SchemeIs(chrome::kDataScheme) || | 221 url.SchemeIs(chrome::kDataScheme) || |
222 url.SchemeIs(chrome::kExtensionScheme) || | 222 url.SchemeIs(chrome::kExtensionScheme) || |
223 url.SchemeIs(chrome::kBlobScheme)) | 223 url.SchemeIs(chrome::kBlobScheme)) |
224 return true; | 224 return true; |
225 return false; | 225 return false; |
226 } | 226 } |
227 | 227 |
228 // static factory function | 228 // static factory function |
229 ResourceLoaderBridge* ResourceLoaderBridge::Create( | 229 ResourceLoaderBridge* ResourceLoaderBridge::Create( |
230 const ResourceLoaderBridge::RequestInfo& request_info) { | 230 const ResourceLoaderBridge::RequestInfo& request_info) { |
231 return ChildThread::current()->CreateBridge(request_info, -1, -1); | 231 return ChildThread::current()->CreateBridge(request_info); |
232 } | 232 } |
233 | 233 |
234 // static factory function | 234 // static factory function |
235 WebSocketStreamHandleBridge* WebSocketStreamHandleBridge::Create( | 235 WebSocketStreamHandleBridge* WebSocketStreamHandleBridge::Create( |
236 WebKit::WebSocketStreamHandle* handle, | 236 WebKit::WebSocketStreamHandle* handle, |
237 WebSocketStreamHandleDelegate* delegate) { | 237 WebSocketStreamHandleDelegate* delegate) { |
238 SocketStreamDispatcher* dispatcher = | 238 SocketStreamDispatcher* dispatcher = |
239 ChildThread::current()->socket_stream_dispatcher(); | 239 ChildThread::current()->socket_stream_dispatcher(); |
240 return dispatcher->CreateBridge(handle, delegate); | 240 return dispatcher->CreateBridge(handle, delegate); |
241 } | 241 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 } | 313 } |
314 | 314 |
315 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 315 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
316 size_t* output_length) { | 316 size_t* output_length) { |
317 return renderer_sandbox_support::GetFontTable( | 317 return renderer_sandbox_support::GetFontTable( |
318 fd, table, output, output_length); | 318 fd, table, output, output_length); |
319 } | 319 } |
320 #endif | 320 #endif |
321 | 321 |
322 } // namespace webkit_glue | 322 } // namespace webkit_glue |
OLD | NEW |