| 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..38f2afaeea0806258e0d570befe978e72cff9c85
|
| --- /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) {
|
| + CommonCreate(file_system.pp_resource(), path);
|
| + }
|
| +};
|
| +
|
| +} // namespace pp
|
| +
|
| +#endif // PPAPI_CPP_PRIVATE_EXT_CRX_FILE_REF_PRIVATE_H
|
|
|