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

Unified Diff: ppapi/cpp/private/ext_crx_file_ref_private.h

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698