diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 04:24:21 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 04:24:21 +0000 |
commit | 6060b10c0db5aab66ed98323a79b239a2df0119b (patch) | |
tree | ad0a7620497204eb6f63c5aecbc70b0d4c289171 /ppapi/cpp/file_system.cc | |
parent | f0b437f60f00985fca65e5095be3eed1402489f8 (diff) | |
download | chromium_src-6060b10c0db5aab66ed98323a79b239a2df0119b.zip chromium_src-6060b10c0db5aab66ed98323a79b239a2df0119b.tar.gz chromium_src-6060b10c0db5aab66ed98323a79b239a2df0119b.tar.bz2 |
Check explicitly for version 1.0 PPB_File* interfaces in pp::File* wrappers.
BUG=107398
Review URL: http://codereview.chromium.org/9712001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/file_system.cc')
-rw-r--r-- | ppapi/cpp/file_system.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ppapi/cpp/file_system.cc b/ppapi/cpp/file_system.cc index 1f2aaa6..022288c 100644 --- a/ppapi/cpp/file_system.cc +++ b/ppapi/cpp/file_system.cc @@ -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. @@ -16,8 +16,8 @@ namespace pp { namespace { -template <> const char* interface_name<PPB_FileSystem>() { - return PPB_FILESYSTEM_INTERFACE; +template <> const char* interface_name<PPB_FileSystem_1_0>() { + return PPB_FILESYSTEM_INTERFACE_1_0; } } // namespace @@ -27,17 +27,17 @@ FileSystem::FileSystem() { FileSystem::FileSystem(const InstanceHandle& instance, PP_FileSystemType type) { - if (!has_interface<PPB_FileSystem>()) + if (!has_interface<PPB_FileSystem_1_0>()) return; - PassRefFromConstructor(get_interface<PPB_FileSystem>()->Create( + PassRefFromConstructor(get_interface<PPB_FileSystem_1_0>()->Create( instance.pp_instance(), type)); } int32_t FileSystem::Open(int64_t expected_size, const CompletionCallback& cc) { - if (!has_interface<PPB_FileSystem>()) + if (!has_interface<PPB_FileSystem_1_0>()) return cc.MayForce(PP_ERROR_NOINTERFACE); - return get_interface<PPB_FileSystem>()->Open( + return get_interface<PPB_FileSystem_1_0>()->Open( pp_resource(), expected_size, cc.pp_completion_callback()); } |