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

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

Issue 881403003: Rename gdata_errorcode.h to drive_api_error_codes.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos in BUILD.gn Created 5 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
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"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/sync_file_system/sync_callbacks.h" 13 #include "chrome/browser/sync_file_system/sync_callbacks.h"
14 #include "google_apis/drive/gdata_errorcode.h" 14 #include "google_apis/drive/drive_api_error_codes.h"
15 15
16 namespace drive { 16 namespace drive {
17 class DriveServiceInterface; 17 class DriveServiceInterface;
18 } 18 }
19 19
20 namespace google_apis { 20 namespace google_apis {
21 class FileList; 21 class FileList;
22 class FileResource; 22 class FileResource;
23 } 23 }
24 24
(...skipping 11 matching lines...) Expand all
36 FolderCreator(drive::DriveServiceInterface* drive_service, 36 FolderCreator(drive::DriveServiceInterface* drive_service,
37 MetadataDatabase* metadata_database, 37 MetadataDatabase* metadata_database,
38 const std::string& parent_folder_id, 38 const std::string& parent_folder_id,
39 const std::string& title); 39 const std::string& title);
40 ~FolderCreator(); 40 ~FolderCreator();
41 41
42 void Run(const FileIDCallback& callback); 42 void Run(const FileIDCallback& callback);
43 43
44 private: 44 private:
45 void DidCreateFolder(const FileIDCallback& callback, 45 void DidCreateFolder(const FileIDCallback& callback,
46 google_apis::GDataErrorCode error, 46 google_apis::DriveApiErrorCode error,
47 scoped_ptr<google_apis::FileResource> entry); 47 scoped_ptr<google_apis::FileResource> entry);
48 void DidListFolders(const FileIDCallback& callback, 48 void DidListFolders(const FileIDCallback& callback,
49 ScopedVector<google_apis::FileResource> candidates, 49 ScopedVector<google_apis::FileResource> candidates,
50 google_apis::GDataErrorCode error, 50 google_apis::DriveApiErrorCode error,
51 scoped_ptr<google_apis::FileList> file_list); 51 scoped_ptr<google_apis::FileList> file_list);
52 52
53 drive::DriveServiceInterface* drive_service_; 53 drive::DriveServiceInterface* drive_service_;
54 MetadataDatabase* metadata_database_; 54 MetadataDatabase* metadata_database_;
55 55
56 const std::string parent_folder_id_; 56 const std::string parent_folder_id_;
57 const std::string title_; 57 const std::string title_;
58 58
59 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_; 59 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(FolderCreator); 61 DISALLOW_COPY_AND_ASSIGN(FolderCreator);
62 }; 62 };
63 63
64 } // namespace drive_backend 64 } // namespace drive_backend
65 } // namespace sync_file_system 65 } // namespace sync_file_system
66 66
67 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ 67 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698