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

Unified Diff: ppapi/cpp/directory_entry.cc

Issue 14784002: Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntries (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/directory_entry.h ('k') | ppapi/cpp/file_ref.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/directory_entry.cc
diff --git a/ppapi/cpp/dev/directory_entry_dev.cc b/ppapi/cpp/directory_entry.cc
similarity index 71%
rename from ppapi/cpp/dev/directory_entry_dev.cc
rename to ppapi/cpp/directory_entry.cc
index 7d538903bde63dbbfea7b88e6917db80514c575e..c8e2b9db3807c6e87d61fed18adf6bb18dea4d14 100644
--- a/ppapi/cpp/dev/directory_entry_dev.cc
+++ b/ppapi/cpp/directory_entry.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ppapi/cpp/dev/directory_entry_dev.h"
+#include "ppapi/cpp/directory_entry.h"
#include <string.h>
@@ -11,30 +11,30 @@
namespace pp {
-DirectoryEntry_Dev::DirectoryEntry_Dev() {
+DirectoryEntry::DirectoryEntry() {
memset(&data_, 0, sizeof(data_));
}
-DirectoryEntry_Dev::DirectoryEntry_Dev(
- PassRef, const PP_DirectoryEntry_Dev& data) {
+DirectoryEntry::DirectoryEntry(
+ PassRef, const PP_DirectoryEntry& data) {
data_.file_ref = data.file_ref;
data_.file_type = data.file_type;
}
-DirectoryEntry_Dev::DirectoryEntry_Dev(const DirectoryEntry_Dev& other) {
+DirectoryEntry::DirectoryEntry(const DirectoryEntry& other) {
data_.file_ref = other.data_.file_ref;
data_.file_type = other.data_.file_type;
if (data_.file_ref)
Module::Get()->core()->AddRefResource(data_.file_ref);
}
-DirectoryEntry_Dev::~DirectoryEntry_Dev() {
+DirectoryEntry::~DirectoryEntry() {
if (data_.file_ref)
Module::Get()->core()->ReleaseResource(data_.file_ref);
}
-DirectoryEntry_Dev& DirectoryEntry_Dev::operator=(
- const DirectoryEntry_Dev& other) {
+DirectoryEntry& DirectoryEntry::operator=(
+ const DirectoryEntry& other) {
if (data_.file_ref)
Module::Get()->core()->ReleaseResource(data_.file_ref);
data_ = other.data_;
@@ -54,19 +54,19 @@ DirectoryEntryArrayOutputAdapterWithStorage::
~DirectoryEntryArrayOutputAdapterWithStorage() {
if (!temp_storage_.empty()) {
// An easy way to release the resource references held by |temp_storage_|.
- // A destructor for PP_DirectoryEntry_Dev will release them.
+ // A destructor for PP_DirectoryEntry will release them.
output();
}
}
-std::vector<DirectoryEntry_Dev>&
+std::vector<DirectoryEntry>&
DirectoryEntryArrayOutputAdapterWithStorage::output() {
PP_DCHECK(output_storage_.empty());
- typedef std::vector<PP_DirectoryEntry_Dev> Entries;
+ typedef std::vector<PP_DirectoryEntry> Entries;
for (Entries::iterator it = temp_storage_.begin();
it != temp_storage_.end();
++it) {
- output_storage_.push_back(DirectoryEntry_Dev(PASS_REF, *it));
+ output_storage_.push_back(DirectoryEntry(PASS_REF, *it));
}
temp_storage_.clear();
return output_storage_;
« no previous file with comments | « ppapi/cpp/directory_entry.h ('k') | ppapi/cpp/file_ref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698