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
6/**
7 * This file contains the <code>PPB_Ext_CrxFileSystem_Private</code> interface.
8 */
9label Chrome {
10  M28 = 0.1
11};
12
13/* <code>PPB_Ext_CrxFileSystem_Private</code> interface */
14interface PPB_Ext_CrxFileSystem_Private {
15  /**
16   * Open() opens the CRX file system for the current extension.  It will fail
17   * when called from non-extension context.
18   *
19   * @param[in] crxfs A <code>PP_Resource</code> corresponding to a
20   * CrxFileSystem.
21   * @param[out] file_system An output <code>PP_Resource</code> corresponding
22   * to a PPB_FileSystem.
23   * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
24   * completion of Open.
25   *
26   * @return An int32_t containing an error code from <code>pp_errors.h</code>.
27   */
28  int32_t Open([in] PP_Instance instance,
29               [out] PP_Resource file_system,
30               [in] PP_CompletionCallback callback);
31};
32