Index: chrome/browser/nacl_host/pnacl_file_host.h |
diff --git a/chrome/browser/nacl_host/pnacl_file_host.h b/chrome/browser/nacl_host/pnacl_file_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..980578010206ea0d5b33dec660349221f7153b4d |
--- /dev/null |
+++ b/chrome/browser/nacl_host/pnacl_file_host.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_ |
+#define CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_ |
+#pragma once |
+ |
+#include <string> |
+ |
+class ChromeRenderMessageFilter; |
+ |
+namespace IPC { |
+class Message; |
+} // namespace IPC |
+ |
+// Opens Pnacl Files in the Browser process, on behalf of the NaCl plugin. |
+ |
+namespace pnacl_file_host { |
+ |
+// Open a Pnacl file (readonly) on behalf of the NaCl plugin. |
+// TODO(jvoung): maybe use FilePaths, but there shouldn't be a path |
+// since this is just a simple flat filesystem. |
+void GetReadonlyPnaclFd(ChromeRenderMessageFilter* chrome_render_message_filter, |
+ const std::string& filename, |
+ IPC::Message* reply_msg); |
+ |
+} // namespace pnacl_file_host |
+ |
+#endif // CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_ |