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

Side by Side Diff: webkit/plugins/ppapi/ppb_directory_reader_impl.cc

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
OLDNEW
1 // Copyright (c) 2011 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 "webkit/plugins/ppapi/ppb_directory_reader_impl.h" 5 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return str; 49 return str;
50 #else 50 #else
51 #error "Unsupported platform." 51 #error "Unsupported platform."
52 #endif 52 #endif
53 } 53 }
54 54
55 } // namespace 55 } // namespace
56 56
57 PPB_DirectoryReader_Impl::PPB_DirectoryReader_Impl( 57 PPB_DirectoryReader_Impl::PPB_DirectoryReader_Impl(
58 PPB_FileRef_Impl* directory_ref) 58 PPB_FileRef_Impl* directory_ref)
59 : Resource(directory_ref->pp_instance()), 59 : Resource(::ppapi::OBJECT_IS_IMPL, directory_ref->pp_instance()),
60 directory_ref_(directory_ref), 60 directory_ref_(directory_ref),
61 has_more_(true), 61 has_more_(true),
62 entry_(NULL) { 62 entry_(NULL) {
63 } 63 }
64 64
65 PPB_DirectoryReader_Impl::~PPB_DirectoryReader_Impl() { 65 PPB_DirectoryReader_Impl::~PPB_DirectoryReader_Impl() {
66 } 66 }
67 67
68 // static 68 // static
69 PP_Resource PPB_DirectoryReader_Impl::Create(PP_Resource directory_ref) { 69 PP_Resource PPB_DirectoryReader_Impl::Create(PP_Resource directory_ref) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 if (!has_more_) { 148 if (!has_more_) {
149 entry_->file_ref = 0; 149 entry_->file_ref = 0;
150 return true; 150 return true;
151 } 151 }
152 152
153 return false; 153 return false;
154 } 154 }
155 155
156 } // namespace ppapi 156 } // namespace ppapi
157 } // namespace webkit 157 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698