Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1316)

Side by Side Diff: ppapi/cpp/dev/directory_reader_dev.cc

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/completion_callback.h ('k') | ppapi/cpp/dev/file_chooser_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/cpp/dev/directory_reader_dev.h" 5 #include "ppapi/cpp/dev/directory_reader_dev.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/cpp/completion_callback.h" 8 #include "ppapi/cpp/completion_callback.h"
9 #include "ppapi/cpp/dev/directory_entry_dev.h" 9 #include "ppapi/cpp/dev/directory_entry_dev.h"
10 #include "ppapi/cpp/dev/file_ref_dev.h" 10 #include "ppapi/cpp/dev/file_ref_dev.h"
11 #include "ppapi/cpp/module.h" 11 #include "ppapi/cpp/module.h"
(...skipping 16 matching lines...) Expand all
28 directory_ref.pp_resource())); 28 directory_ref.pp_resource()));
29 } 29 }
30 30
31 DirectoryReader_Dev::DirectoryReader_Dev(const DirectoryReader_Dev& other) 31 DirectoryReader_Dev::DirectoryReader_Dev(const DirectoryReader_Dev& other)
32 : Resource(other) { 32 : Resource(other) {
33 } 33 }
34 34
35 int32_t DirectoryReader_Dev::GetNextEntry(DirectoryEntry_Dev* entry, 35 int32_t DirectoryReader_Dev::GetNextEntry(DirectoryEntry_Dev* entry,
36 const CompletionCallback& cc) { 36 const CompletionCallback& cc) {
37 if (!has_interface<PPB_DirectoryReader_Dev>()) 37 if (!has_interface<PPB_DirectoryReader_Dev>())
38 return PP_ERROR_NOINTERFACE; 38 return cc.MayForce(PP_ERROR_NOINTERFACE);
39 return get_interface<PPB_DirectoryReader_Dev>()->GetNextEntry( 39 return get_interface<PPB_DirectoryReader_Dev>()->GetNextEntry(
40 pp_resource(), &entry->data_, cc.pp_completion_callback()); 40 pp_resource(), &entry->data_, cc.pp_completion_callback());
41 } 41 }
42 42
43 } // namespace pp 43 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/completion_callback.h ('k') | ppapi/cpp/dev/file_chooser_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698