| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 if (!RenderThread::current()->plugin_refresh_allowed()) | 211 if (!RenderThread::current()->plugin_refresh_allowed()) |
| 212 refresh = false; | 212 refresh = false; |
| 213 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); | 213 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool IsProtocolSupportedForMedia(const GURL& url) { | 216 bool IsProtocolSupportedForMedia(const GURL& url) { |
| 217 // If new protocol is to be added here, we need to make sure the response is | 217 // If new protocol is to be added here, we need to make sure the response is |
| 218 // validated accordingly in the media engine. | 218 // validated accordingly in the media engine. |
| 219 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || | 219 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || |
| 220 url.SchemeIs(chrome::kHttpsScheme) || | 220 url.SchemeIs(chrome::kHttpsScheme) || |
| 221 url.SchemeIs(chrome::kHttpsvScheme) || |
| 221 url.SchemeIs(chrome::kDataScheme) || | 222 url.SchemeIs(chrome::kDataScheme) || |
| 222 url.SchemeIs(chrome::kExtensionScheme) || | 223 url.SchemeIs(chrome::kExtensionScheme) || |
| 223 url.SchemeIs(chrome::kBlobScheme)) | 224 url.SchemeIs(chrome::kBlobScheme)) |
| 224 return true; | 225 return true; |
| 225 return false; | 226 return false; |
| 226 } | 227 } |
| 227 | 228 |
| 228 // static factory function | 229 // static factory function |
| 229 ResourceLoaderBridge* ResourceLoaderBridge::Create( | 230 ResourceLoaderBridge* ResourceLoaderBridge::Create( |
| 230 const ResourceLoaderBridge::RequestInfo& request_info) { | 231 const ResourceLoaderBridge::RequestInfo& request_info) { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 } | 314 } |
| 314 | 315 |
| 315 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 316 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
| 316 size_t* output_length) { | 317 size_t* output_length) { |
| 317 return renderer_sandbox_support::GetFontTable( | 318 return renderer_sandbox_support::GetFontTable( |
| 318 fd, table, output, output_length); | 319 fd, table, output, output_length); |
| 319 } | 320 } |
| 320 #endif | 321 #endif |
| 321 | 322 |
| 322 } // namespace webkit_glue | 323 } // namespace webkit_glue |
| OLD | NEW |