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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 193 } |
194 | 194 |
195 bool ClipboardReadFilenames(Clipboard::Buffer buffer, | 195 bool ClipboardReadFilenames(Clipboard::Buffer buffer, |
196 std::vector<string16>* filenames) { | 196 std::vector<string16>* filenames) { |
197 bool result; | 197 bool result; |
198 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadFilenames( | 198 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadFilenames( |
199 buffer, &result, filenames)); | 199 buffer, &result, filenames)); |
200 return result; | 200 return result; |
201 } | 201 } |
202 | 202 |
203 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { | 203 void GetPlugins(bool refresh, |
| 204 std::vector<webkit::npapi::WebPluginInfo>* plugins) { |
204 if (!RenderThread::current()->plugin_refresh_allowed()) | 205 if (!RenderThread::current()->plugin_refresh_allowed()) |
205 refresh = false; | 206 refresh = false; |
206 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); | 207 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); |
207 } | 208 } |
208 | 209 |
209 bool IsProtocolSupportedForMedia(const GURL& url) { | 210 bool IsProtocolSupportedForMedia(const GURL& url) { |
210 // If new protocol is to be added here, we need to make sure the response is | 211 // If new protocol is to be added here, we need to make sure the response is |
211 // validated accordingly in the media engine. | 212 // validated accordingly in the media engine. |
212 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || | 213 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || |
213 url.SchemeIs(chrome::kHttpsScheme) || | 214 url.SchemeIs(chrome::kHttpsScheme) || |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 } | 283 } |
283 | 284 |
284 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 285 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
285 size_t* output_length) { | 286 size_t* output_length) { |
286 return renderer_sandbox_support::GetFontTable( | 287 return renderer_sandbox_support::GetFontTable( |
287 fd, table, output, output_length); | 288 fd, table, output, output_length); |
288 } | 289 } |
289 #endif | 290 #endif |
290 | 291 |
291 } // namespace webkit_glue | 292 } // namespace webkit_glue |
OLD | NEW |