forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FileRef GetPathPrivate interface for O3D
This is an implementation of a new private interface to get the filepath of a file downloaded with URLLoader and URLRequestInfo.SetStreamToFile(true). The file will be read in its entirety during a successful URLLoader.FinishStreamingToFile callback. BUG=none TEST=none Review URL: http://codereview.chromium.org/8604006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111805 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
jhorwich@chromium.org
committed
Nov 28, 2011
1 parent
9a0fafb
commit f12a383
Showing
12 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright (c) 2011 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. | ||
*/ | ||
|
||
/* This file contains PPB_FileRefPrivate interface. */ | ||
|
||
/* PPB_FileRefPrivate interface */ | ||
interface PPB_FileRefPrivate { | ||
/** | ||
* GetAbsolutePath() returns the absolute path of the file. | ||
* | ||
* @param[in] file_ref A <code>PP_Resource</code> corresponding to a file | ||
* reference. | ||
* | ||
* @return A <code>PP_Var</code> containing the absolute path of the file. | ||
*/ | ||
PP_Var GetAbsolutePath([in] PP_Resource file_ref); | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* Copyright (c) 2011 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_C_PRIVATE_PPB_FILE_REF_PRIVATE_H_ | ||
#define PPAPI_C_PRIVATE_PPB_FILE_REF_PRIVATE_H_ | ||
|
||
#include "ppapi/c/pp_macros.h" | ||
#include "ppapi/c/pp_resource.h" | ||
#include "ppapi/c/pp_var.h" | ||
|
||
#define PPB_FILEREFPRIVATE_INTERFACE_0_1 "PPB_FileRefPrivate;0.1" | ||
#define PPB_FILEREFPRIVATE_INTERFACE PPB_FILEREFPRIVATE_INTERFACE_0_1 | ||
|
||
/** | ||
* @file | ||
* This file contains the <code>PPB_FileRefPrivate</code> interface. | ||
*/ | ||
|
||
|
||
/** | ||
* @addtogroup Interfaces | ||
* @{ | ||
*/ | ||
/* PPB_FileRefPrivate interface */ | ||
struct PPB_FileRefPrivate { | ||
/** | ||
* GetAbsolutePath() returns the absolute path of the file. | ||
* | ||
* @param[in] file_ref A <code>PP_Resource</code> corresponding to a file | ||
* reference. | ||
* | ||
* @return A <code>PP_Var</code> containing the absolute path of the file. | ||
*/ | ||
struct PP_Var (*GetAbsolutePath)(PP_Resource file_ref); | ||
}; | ||
/** | ||
* @} | ||
*/ | ||
|
||
#endif /* PPAPI_C_PRIVATE_PPB_FILE_REF_PRIVATE_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters