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

Unified Diff: chrome/browser/chromeos/gdata/find_entry_delegate.cc

Issue 10204013: Move FindEntryDelegate and friends to separate file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: change tense of comments Created 8 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
Index: chrome/browser/chromeos/gdata/find_entry_delegate.cc
===================================================================
--- chrome/browser/chromeos/gdata/find_entry_delegate.cc (revision 0)
+++ chrome/browser/chromeos/gdata/find_entry_delegate.cc (revision 0)
@@ -0,0 +1,41 @@
+// 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.
+
+#include "chrome/browser/chromeos/gdata/find_entry_delegate.h"
+
+#include "chrome/browser/chromeos/gdata/gdata_files.h"
+
+namespace gdata {
+
+FindEntryDelegate::~FindEntryDelegate() {
+}
+
+ReadOnlyFindEntryDelegate::ReadOnlyFindEntryDelegate() : entry_(NULL) {
+}
+
+void ReadOnlyFindEntryDelegate::OnDone(base::PlatformFileError error,
+ const FilePath& directory_path,
+ GDataEntry* entry) {
+ DCHECK(!entry_);
+ if (error == base::PLATFORM_FILE_OK)
+ entry_ = entry;
+ else
+ entry_ = NULL;
+}
+
+FindEntryCallbackRelayDelegate::FindEntryCallbackRelayDelegate(
+ const FindEntryCallback& callback) : callback_(callback) {
+}
+
+FindEntryCallbackRelayDelegate::~FindEntryCallbackRelayDelegate() {
+}
+
+void FindEntryCallbackRelayDelegate::OnDone(base::PlatformFileError error,
+ const FilePath& directory_path,
+ GDataEntry* entry) {
+ if (!callback_.is_null())
+ callback_.Run(error, directory_path, entry);
+}
+
+} // namespace gdata
Property changes on: chrome/browser/chromeos/gdata/find_entry_delegate.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/chromeos/gdata/find_entry_delegate.h ('k') | chrome/browser/chromeos/gdata/gdata_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698