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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/folder_creator.h

Issue 560703002: [SyncFS] Expand simple functions to their caller in drive_backend/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@03_context_rename
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/folder_creator.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void Run(const FileIDCallback& callback); 43 void Run(const FileIDCallback& callback);
44 44
45 private: 45 private:
46 void DidCreateFolder(const FileIDCallback& callback, 46 void DidCreateFolder(const FileIDCallback& callback,
47 google_apis::GDataErrorCode error, 47 google_apis::GDataErrorCode error,
48 scoped_ptr<google_apis::FileResource> entry); 48 scoped_ptr<google_apis::FileResource> entry);
49 void DidListFolders(const FileIDCallback& callback, 49 void DidListFolders(const FileIDCallback& callback,
50 ScopedVector<google_apis::FileResource> candidates, 50 ScopedVector<google_apis::FileResource> candidates,
51 google_apis::GDataErrorCode error, 51 google_apis::GDataErrorCode error,
52 scoped_ptr<google_apis::FileList> file_list); 52 scoped_ptr<google_apis::FileList> file_list);
53 void DidUpdateDatabase(const std::string& file_id,
54 const FileIDCallback& callback,
55 SyncStatusCode status);
56 53
57 drive::DriveServiceInterface* drive_service_; 54 drive::DriveServiceInterface* drive_service_;
58 MetadataDatabase* metadata_database_; 55 MetadataDatabase* metadata_database_;
59 56
60 const std::string parent_folder_id_; 57 const std::string parent_folder_id_;
61 const std::string title_; 58 const std::string title_;
62 59
63 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_; 60 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_;
64 61
65 DISALLOW_COPY_AND_ASSIGN(FolderCreator); 62 DISALLOW_COPY_AND_ASSIGN(FolderCreator);
66 }; 63 };
67 64
68 } // namespace drive_backend 65 } // namespace drive_backend
69 } // namespace sync_file_system 66 } // namespace sync_file_system
70 67
71 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ 68 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/folder_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698