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

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

Issue 75463005: Move more files from chrome/browser/nacl_host/ to components/nacl/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 CHROME_BROWSER_NACL_HOST_NACL_FILE_HOST_H_ 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_
6 #define CHROME_BROWSER_NACL_HOST_NACL_FILE_HOST_H_ 6 #define COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 11
12 class GURL; 12 class GURL;
13 class NaClHostMessageFilter;
14 13
15 namespace base { 14 namespace base {
16 class FilePath; 15 class FilePath;
17 } 16 }
18 17
19 namespace IPC { 18 namespace IPC {
20 class Message; 19 class Message;
21 } 20 }
22 21
22 namespace nacl {
23 class NaClHostMessageFilter;
24 }
25
23 // Opens NaCl Files in the Browser process, on behalf of the NaCl plugin. 26 // Opens NaCl Files in the Browser process, on behalf of the NaCl plugin.
24 27
25 namespace nacl_file_host { 28 namespace nacl_file_host {
26 29
27 // Open a PNaCl file (readonly) on behalf of the NaCl plugin. 30 // Open a PNaCl file (readonly) on behalf of the NaCl plugin.
28 void GetReadonlyPnaclFd( 31 void GetReadonlyPnaclFd(
29 scoped_refptr<NaClHostMessageFilter> nacl_host_message_filter, 32 scoped_refptr<nacl::NaClHostMessageFilter> nacl_host_message_filter,
30 const std::string& filename, 33 const std::string& filename,
31 IPC::Message* reply_msg); 34 IPC::Message* reply_msg);
32 35
33 // Return true if the filename requested is valid for opening. 36 // Return true if the filename requested is valid for opening.
34 // Sets file_to_open to the base::FilePath which we will attempt to open. 37 // Sets file_to_open to the base::FilePath which we will attempt to open.
35 bool PnaclCanOpenFile(const std::string& filename, 38 bool PnaclCanOpenFile(const std::string& filename,
36 base::FilePath* file_to_open); 39 base::FilePath* file_to_open);
37 40
38 // Opens a NaCl executable file for reading and executing. 41 // Opens a NaCl executable file for reading and executing.
39 void OpenNaClExecutable( 42 void OpenNaClExecutable(
40 scoped_refptr<NaClHostMessageFilter> nacl_host_message_filter, 43 scoped_refptr<nacl::NaClHostMessageFilter> nacl_host_message_filter,
41 int render_view_id, 44 int render_view_id,
42 const GURL& file_url, 45 const GURL& file_url,
43 IPC::Message* reply_msg); 46 IPC::Message* reply_msg);
44 47
45 } // namespace nacl_file_host 48 } // namespace nacl_file_host
46 49
47 #endif // CHROME_BROWSER_NACL_HOST_NACL_FILE_HOST_H_ 50 #endif // COMPONENTS_NACL_BROWSER_NACL_FILE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698