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

Side by Side Diff: content/renderer/pepper/resource_converter.cc

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/renderer/pepper/resource_converter.h" 5 #include "content/renderer/pepper/resource_converter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 *result_type = blink::WebFileSystemTypeIsolated; 77 *result_type = blink::WebFileSystemTypeIsolated;
78 return true; 78 return true;
79 case storage::kFileSystemTypeExternal: 79 case storage::kFileSystemTypeExternal:
80 *result_type = blink::WebFileSystemTypeExternal; 80 *result_type = blink::WebFileSystemTypeExternal;
81 return true; 81 return true;
82 default: 82 default:
83 return false; 83 return false;
84 } 84 }
85 } 85 }
86 86
87 // Given a V8 value containing a DOMFileSystem, creates a resource host and 87 // Given a V8 value containing a FileSystem, creates a resource host and
88 // returns the resource information for serialization. 88 // returns the resource information for serialization.
89 // On error, false. 89 // On error, false.
90 bool DOMFileSystemToResource( 90 bool DOMFileSystemToResource(
91 PP_Instance instance, 91 PP_Instance instance,
92 RendererPpapiHost* host, 92 RendererPpapiHost* host,
93 const blink::WebDOMFileSystem& dom_file_system, 93 const blink::WebDOMFileSystem& dom_file_system,
94 int* pending_renderer_id, 94 int* pending_renderer_id,
95 std::unique_ptr<IPC::Message>* create_message, 95 std::unique_ptr<IPC::Message>* create_message,
96 std::unique_ptr<IPC::Message>* browser_host_create_message) { 96 std::unique_ptr<IPC::Message>* browser_host_create_message) {
97 DCHECK(!dom_file_system.isNull()); 97 DCHECK(!dom_file_system.isNull());
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 const IPC::Message& create_message, 348 const IPC::Message& create_message,
349 const IPC::Message& browser_host_create_message) { 349 const IPC::Message& browser_host_create_message) {
350 scoped_refptr<HostResourceVar> result = 350 scoped_refptr<HostResourceVar> result =
351 CreateResourceVar(pending_renderer_id, create_message); 351 CreateResourceVar(pending_renderer_id, create_message);
352 browser_host_create_messages_.push_back(browser_host_create_message); 352 browser_host_create_messages_.push_back(browser_host_create_message);
353 browser_vars_.push_back(result); 353 browser_vars_.push_back(result);
354 return result; 354 return result;
355 } 355 }
356 356
357 } // namespace content 357 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/get_display_path/test.js ('k') | extensions/common/api/app_runtime.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698