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

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

Issue 3282003: Support handling blob URL and resolve blob references in upload data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months 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
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 refresh = false; 252 refresh = false;
253 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); 253 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins));
254 } 254 }
255 255
256 bool IsProtocolSupportedForMedia(const GURL& url) { 256 bool IsProtocolSupportedForMedia(const GURL& url) {
257 // If new protocol is to be added here, we need to make sure the response is 257 // If new protocol is to be added here, we need to make sure the response is
258 // validated accordingly in the media engine. 258 // validated accordingly in the media engine.
259 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) || 259 if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) ||
260 url.SchemeIs(chrome::kHttpsScheme) || 260 url.SchemeIs(chrome::kHttpsScheme) ||
261 url.SchemeIs(chrome::kDataScheme) || 261 url.SchemeIs(chrome::kDataScheme) ||
262 url.SchemeIs(chrome::kExtensionScheme)) 262 url.SchemeIs(chrome::kExtensionScheme) ||
263 url.SchemeIs(chrome::kBlobScheme))
263 return true; 264 return true;
264 return false; 265 return false;
265 } 266 }
266 267
267 // static factory function 268 // static factory function
268 ResourceLoaderBridge* ResourceLoaderBridge::Create( 269 ResourceLoaderBridge* ResourceLoaderBridge::Create(
269 const ResourceLoaderBridge::RequestInfo& request_info) { 270 const ResourceLoaderBridge::RequestInfo& request_info) {
270 return ChildThread::current()->CreateBridge(request_info, -1, -1); 271 return ChildThread::current()->CreateBridge(request_info, -1, -1);
271 } 272 }
272 273
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 324 }
324 325
325 bool GetFontTable(int fd, uint32_t table, uint8_t* output, 326 bool GetFontTable(int fd, uint32_t table, uint8_t* output,
326 size_t* output_length) { 327 size_t* output_length) {
327 return renderer_sandbox_support::GetFontTable( 328 return renderer_sandbox_support::GetFontTable(
328 fd, table, output, output_length); 329 fd, table, output, output_length);
329 } 330 }
330 #endif 331 #endif
331 332
332 } // namespace webkit_glue 333 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698