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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/gdata/find_entry_delegate.h"
6
7 #include "chrome/browser/chromeos/gdata/gdata_files.h"
8
9 namespace gdata {
10
11 FindEntryDelegate::~FindEntryDelegate() {
12 }
13
14 ReadOnlyFindEntryDelegate::ReadOnlyFindEntryDelegate() : entry_(NULL) {
15 }
16
17 void ReadOnlyFindEntryDelegate::OnDone(base::PlatformFileError error,
18 const FilePath& directory_path,
19 GDataEntry* entry) {
20 DCHECK(!entry_);
21 if (error == base::PLATFORM_FILE_OK)
22 entry_ = entry;
23 else
24 entry_ = NULL;
25 }
26
27 FindEntryCallbackRelayDelegate::FindEntryCallbackRelayDelegate(
28 const FindEntryCallback& callback) : callback_(callback) {
29 }
30
31 FindEntryCallbackRelayDelegate::~FindEntryCallbackRelayDelegate() {
32 }
33
34 void FindEntryCallbackRelayDelegate::OnDone(base::PlatformFileError error,
35 const FilePath& directory_path,
36 GDataEntry* entry) {
37 if (!callback_.is_null()) {
38 callback_.Run(error, directory_path, entry);
39 }
satorux1 2012/04/24 17:48:01 nit: remove {} per chromium style guide.
40 }
41
42 } // namespace gdata
OLDNEW
« 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