Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: chrome/renderer/renderer_glue.cc

Issue 5961004: Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/webplugin_delegate_pepper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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, 208 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) {
209 std::vector<webkit::npapi::WebPluginInfo>* plugins) {
210 if (!RenderThread::current()->plugin_refresh_allowed()) 209 if (!RenderThread::current()->plugin_refresh_allowed())
211 refresh = false; 210 refresh = false;
212 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); 211 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins));
213 } 212 }
214 213
215 bool IsProtocolSupportedForMedia(const GURL& url) { 214 bool IsProtocolSupportedForMedia(const GURL& url) {
216 // If new protocol is to be added here, we need to make sure the response is 215 // If new protocol is to be added here, we need to make sure the response is
217 // validated accordingly in the media engine. 216 // validated accordingly in the media engine.
218 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || 217 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) ||
219 url.SchemeIs(chrome::kHttpsScheme) || 218 url.SchemeIs(chrome::kHttpsScheme) ||
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 311 }
313 312
314 bool GetFontTable(int fd, uint32_t table, uint8_t* output, 313 bool GetFontTable(int fd, uint32_t table, uint8_t* output,
315 size_t* output_length) { 314 size_t* output_length) {
316 return renderer_sandbox_support::GetFontTable( 315 return renderer_sandbox_support::GetFontTable(
317 fd, table, output, output_length); 316 fd, table, output, output_length);
318 } 317 }
319 #endif 318 #endif
320 319
321 } // namespace webkit_glue 320 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/webplugin_delegate_pepper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698