diff options
author | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-16 02:06:18 +0000 |
---|---|---|
committer | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-16 02:06:18 +0000 |
commit | 150ecac421413cc7461d85260a327a145cf6e6cc (patch) | |
tree | 54801ab6c4099cda11473a1dfd5b6f16d398eebf /webkit/plugins/ppapi/ppb_file_ref_impl.h | |
parent | 4969b012f10da24416e15e8812281519caf528ec (diff) | |
download | chromium_src-150ecac421413cc7461d85260a327a145cf6e6cc.zip chromium_src-150ecac421413cc7461d85260a327a145cf6e6cc.tar.gz chromium_src-150ecac421413cc7461d85260a327a145cf6e6cc.tar.bz2 |
Pass display names from file chooser to Pepper FileRef.
The real path names coming from file system are sometimes
human-unreadable, so FileChooser attaches them human-readable
display names. This CL wires the display names into FileRef.
BUG=129609
TEST=manual test on yahoo mail file attachment.
Review URL: https://chromiumcodereview.appspot.com/10560003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142561 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/ppb_file_ref_impl.h')
-rw-r--r-- | webkit/plugins/ppapi/ppb_file_ref_impl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/plugins/ppapi/ppb_file_ref_impl.h b/webkit/plugins/ppapi/ppb_file_ref_impl.h index c9b1dbf..91d1551 100644 --- a/webkit/plugins/ppapi/ppb_file_ref_impl.h +++ b/webkit/plugins/ppapi/ppb_file_ref_impl.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -34,7 +34,8 @@ class PPB_FileRef_Impl : public ::ppapi::PPB_FileRef_Shared { // The returned object will have a refcount of 0 (just like "new"). static PPB_FileRef_Impl* CreateExternal(PP_Instance instance, - const FilePath& external_file_path); + const FilePath& external_file_path, + const std::string& display_name); // PPB_FileRef_API implementation (not provided by PPB_FileRef_Shared). virtual PP_Resource GetParent() OVERRIDE; |