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

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

Issue 2613223002: Remove ScopedVector from base::JSONValueConverter (Closed)
Patch Set: Rebase and address comments from mmenke@ Created 3 years, 11 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_vector.h"
13 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/sync_file_system/sync_callbacks.h" 13 #include "chrome/browser/sync_file_system/sync_callbacks.h"
15 #include "google_apis/drive/drive_api_error_codes.h" 14 #include "google_apis/drive/drive_api_error_codes.h"
16 15
17 namespace drive { 16 namespace drive {
18 class DriveServiceInterface; 17 class DriveServiceInterface;
19 } 18 }
20 19
21 namespace google_apis { 20 namespace google_apis {
22 class FileList; 21 class FileList;
(...skipping 15 matching lines...) Expand all
38 const std::string& parent_folder_id, 37 const std::string& parent_folder_id,
39 const std::string& title); 38 const std::string& title);
40 ~FolderCreator(); 39 ~FolderCreator();
41 40
42 void Run(const FileIDCallback& callback); 41 void Run(const FileIDCallback& callback);
43 42
44 private: 43 private:
45 void DidCreateFolder(const FileIDCallback& callback, 44 void DidCreateFolder(const FileIDCallback& callback,
46 google_apis::DriveApiErrorCode error, 45 google_apis::DriveApiErrorCode error,
47 std::unique_ptr<google_apis::FileResource> entry); 46 std::unique_ptr<google_apis::FileResource> entry);
48 void DidListFolders(const FileIDCallback& callback, 47 void DidListFolders(
49 ScopedVector<google_apis::FileResource> candidates, 48 const FileIDCallback& callback,
50 google_apis::DriveApiErrorCode error, 49 std::vector<std::unique_ptr<google_apis::FileResource>> candidates,
51 std::unique_ptr<google_apis::FileList> file_list); 50 google_apis::DriveApiErrorCode error,
51 std::unique_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