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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/uninstall_app_task.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_UNINSTALL_APP_TASK_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_UNINSTALL_APP_TASK_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_UNINSTALL_APP_TASK_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_UNINSTALL_APP_TASK_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/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" 12 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h"
13 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" 13 #include "chrome/browser/sync_file_system/remote_file_sync_service.h"
14 #include "chrome/browser/sync_file_system/sync_callbacks.h" 14 #include "chrome/browser/sync_file_system/sync_callbacks.h"
15 #include "google_apis/drive/gdata_errorcode.h" 15 #include "google_apis/drive/drive_api_error_codes.h"
16 16
17 namespace drive { 17 namespace drive {
18 class DriveServiceInterface; 18 class DriveServiceInterface;
19 } 19 }
20 20
21 namespace sync_file_system { 21 namespace sync_file_system {
22 namespace drive_backend { 22 namespace drive_backend {
23 23
24 class FileTracker; 24 class FileTracker;
25 class MetadataDatabase; 25 class MetadataDatabase;
26 class SyncEngineContext; 26 class SyncEngineContext;
27 class TrackerSet; 27 class TrackerSet;
28 28
29 class UninstallAppTask : public ExclusiveTask { 29 class UninstallAppTask : public ExclusiveTask {
30 public: 30 public:
31 typedef RemoteFileSyncService::UninstallFlag UninstallFlag; 31 typedef RemoteFileSyncService::UninstallFlag UninstallFlag;
32 UninstallAppTask(SyncEngineContext* sync_context, 32 UninstallAppTask(SyncEngineContext* sync_context,
33 const std::string& app_id, 33 const std::string& app_id,
34 UninstallFlag uninstall_flag); 34 UninstallFlag uninstall_flag);
35 ~UninstallAppTask() override; 35 ~UninstallAppTask() override;
36 36
37 void RunExclusive(const SyncStatusCallback& callback) override; 37 void RunExclusive(const SyncStatusCallback& callback) override;
38 38
39 private: 39 private:
40 void DidDeleteAppRoot(const SyncStatusCallback& callback, 40 void DidDeleteAppRoot(const SyncStatusCallback& callback,
41 int64 change_id, 41 int64 change_id,
42 google_apis::GDataErrorCode error); 42 google_apis::DriveApiErrorCode error);
43 43
44 bool IsContextReady(); 44 bool IsContextReady();
45 MetadataDatabase* metadata_database(); 45 MetadataDatabase* metadata_database();
46 drive::DriveServiceInterface* drive_service(); 46 drive::DriveServiceInterface* drive_service();
47 47
48 SyncEngineContext* sync_context_; // Not owned. 48 SyncEngineContext* sync_context_; // Not owned.
49 49
50 std::string app_id_; 50 std::string app_id_;
51 UninstallFlag uninstall_flag_; 51 UninstallFlag uninstall_flag_;
52 int64 app_root_tracker_id_; 52 int64 app_root_tracker_id_;
53 53
54 base::WeakPtrFactory<UninstallAppTask> weak_ptr_factory_; 54 base::WeakPtrFactory<UninstallAppTask> weak_ptr_factory_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(UninstallAppTask); 56 DISALLOW_COPY_AND_ASSIGN(UninstallAppTask);
57 }; 57 };
58 58
59 } // namespace drive_backend 59 } // namespace drive_backend
60 } // namespace sync_file_system 60 } // namespace sync_file_system
61 61
62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_UNINSTALL_APP_TASK_H_ 62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_UNINSTALL_APP_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698