OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef PPAPI_CPP_PRIVATE_EXT_CRX_FILE_REF_PRIVATE_H | |
6 #define PPAPI_CPP_PRIVATE_EXT_CRX_FILE_REF_PRIVATE_H | |
7 | |
8 #include "ppapi/cpp/file_ref.h" | |
9 #include "ppapi/cpp/private/ext_crx_file_system_private.h" | |
10 | |
11 namespace pp { | |
12 | |
13 // Private FileRef interface for CRX filesystem support. | |
14 class ExtCrxFileRefPrivate : public FileRef { | |
15 public: | |
16 /// Default constructor for creating an is_null() <code>FileRef</code> | |
17 /// object. | |
18 ExtCrxFileRefPrivate() {} | |
19 | |
20 /// A constructor that creates a weak pointer to a file in the given CRX file | |
21 /// system. File paths are POSIX style. | |
22 /// | |
23 /// @param[in] resource A <code>ExtCrxFileSystemPrivate</code>. | |
24 /// @param[in] path A path to the file. | |
25 ExtCrxFileRefPrivate(const ExtCrxFileSystemPrivate& file_system, | |
26 const char* path) { | |
teravest
2013/04/18 16:10:38
nit: whitespace looks funky here.
victorhsieh
2013/04/18 19:28:38
Done.
| |
27 CommonCreate(file_system.pp_resource(), path); | |
28 } | |
29 }; | |
30 | |
31 } // namespace pp | |
32 | |
33 #endif // PPAPI_CPP_PRIVATE_EXT_CRX_FILE_REF_PRIVATE_H | |
OLD | NEW |