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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 198 } |
199 | 199 |
200 bool ClipboardReadFilenames(Clipboard::Buffer buffer, | 200 bool ClipboardReadFilenames(Clipboard::Buffer buffer, |
201 std::vector<string16>* filenames) { | 201 std::vector<string16>* filenames) { |
202 bool result; | 202 bool result; |
203 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadFilenames( | 203 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadFilenames( |
204 buffer, &result, filenames)); | 204 buffer, &result, filenames)); |
205 return result; | 205 return result; |
206 } | 206 } |
207 | 207 |
208 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { | 208 void GetPlugins(bool refresh, |
| 209 std::vector<webkit::npapi::WebPluginInfo>* plugins) { |
209 if (!RenderThread::current()->plugin_refresh_allowed()) | 210 if (!RenderThread::current()->plugin_refresh_allowed()) |
210 refresh = false; | 211 refresh = false; |
211 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); | 212 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); |
212 } | 213 } |
213 | 214 |
214 bool IsProtocolSupportedForMedia(const GURL& url) { | 215 bool IsProtocolSupportedForMedia(const GURL& url) { |
215 // If new protocol is to be added here, we need to make sure the response is | 216 // If new protocol is to be added here, we need to make sure the response is |
216 // validated accordingly in the media engine. | 217 // validated accordingly in the media engine. |
217 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || | 218 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || |
218 url.SchemeIs(chrome::kHttpsScheme) || | 219 url.SchemeIs(chrome::kHttpsScheme) || |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 } | 312 } |
312 | 313 |
313 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 314 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
314 size_t* output_length) { | 315 size_t* output_length) { |
315 return renderer_sandbox_support::GetFontTable( | 316 return renderer_sandbox_support::GetFontTable( |
316 fd, table, output, output_length); | 317 fd, table, output, output_length); |
317 } | 318 } |
318 #endif | 319 #endif |
319 | 320 |
320 } // namespace webkit_glue | 321 } // namespace webkit_glue |
OLD | NEW |