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

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

Issue 5996003: Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (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, 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
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
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