Index: ppapi/cpp/private/ext_crx_file_ref_private.h |
diff --git a/ppapi/cpp/private/ext_crx_file_ref_private.h b/ppapi/cpp/private/ext_crx_file_ref_private.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..69095aa0ab30f70345374daf19ab9fd73af0f6fd |
--- /dev/null |
+++ b/ppapi/cpp/private/ext_crx_file_ref_private.h |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2013 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 PPAPI_CPP_PRIVATE_EXT_CRX_FILE_REF_PRIVATE_H |
+#define PPAPI_CPP_PRIVATE_EXT_CRX_FILE_REF_PRIVATE_H |
+ |
+#include "ppapi/cpp/file_ref.h" |
+#include "ppapi/cpp/private/ext_crx_file_system_private.h" |
+ |
+namespace pp { |
+ |
+// Private FileRef interface for CRX filesystem support. |
+class ExtCrxFileRefPrivate : public FileRef { |
+ public: |
+ /// Default constructor for creating an is_null() <code>FileRef</code> |
+ /// object. |
+ ExtCrxFileRefPrivate() {} |
+ |
+ /// A constructor that creates a weak pointer to a file in the given CRX file |
+ /// system. File paths are POSIX style. |
+ /// |
+ /// @param[in] resource A <code>ExtCrxFileSystemPrivate</code>. |
+ /// @param[in] path A path to the file. |
+ ExtCrxFileRefPrivate(const ExtCrxFileSystemPrivate& file_system, |
+ const char* path) { |
teravest
2013/04/18 16:10:38
nit: whitespace looks funky here.
victorhsieh
2013/04/18 19:28:38
Done.
|
+ CommonCreate(file_system.pp_resource(), path); |
+ } |
+}; |
+ |
+} // namespace pp |
+ |
+#endif // PPAPI_CPP_PRIVATE_EXT_CRX_FILE_REF_PRIVATE_H |