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

Side by Side Diff: components/nacl/browser/nacl_file_host.h

Issue 649603004: Non-SFI NaCl: Batch-open resource files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ipc/ and mojo/ changes following Mark's suggestion Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_ 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_
6 #define COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_ 6 #define COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 12
12 class GURL; 13 class GURL;
13 14
14 namespace base { 15 namespace base {
15 class FilePath; 16 class FilePath;
16 } 17 }
17 18
18 namespace IPC { 19 namespace IPC {
(...skipping 15 matching lines...) Expand all
34 scoped_refptr<nacl::NaClHostMessageFilter> nacl_host_message_filter, 35 scoped_refptr<nacl::NaClHostMessageFilter> nacl_host_message_filter,
35 const std::string& filename, 36 const std::string& filename,
36 bool is_executable, 37 bool is_executable,
37 IPC::Message* reply_msg); 38 IPC::Message* reply_msg);
38 39
39 // Return true if the filename requested is valid for opening. 40 // Return true if the filename requested is valid for opening.
40 // Sets file_to_open to the base::FilePath which we will attempt to open. 41 // Sets file_to_open to the base::FilePath which we will attempt to open.
41 bool PnaclCanOpenFile(const std::string& filename, 42 bool PnaclCanOpenFile(const std::string& filename,
42 base::FilePath* file_to_open); 43 base::FilePath* file_to_open);
43 44
44 // Opens a NaCl executable file for reading and executing. 45 // Opens NaCl resource files for reading and/or executing.
45 void OpenNaClExecutable( 46 void OpenNaClResources(
46 scoped_refptr<nacl::NaClHostMessageFilter> nacl_host_message_filter, 47 scoped_refptr<nacl::NaClHostMessageFilter> nacl_host_message_filter,
47 int render_view_id, 48 int render_view_id,
48 const GURL& file_url, 49 const GURL& executable_file_url,
50 const std::vector<GURL>& resource_urls,
Mark Seaborn 2015/02/02 23:21:50 What is the difference between executable_file_url
Yusuke Sato 2015/02/04 02:00:28 Done.
49 IPC::Message* reply_msg); 51 IPC::Message* reply_msg);
50 52
51 } // namespace nacl_file_host 53 } // namespace nacl_file_host
52 54
53 #endif // COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_ 55 #endif // COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | components/nacl/browser/nacl_file_host.cc » ('j') | components/nacl/browser/nacl_file_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698