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

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

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
12 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" 15 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h"
13 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" 16 #include "chrome/browser/sync_file_system/remote_file_sync_service.h"
14 #include "chrome/browser/sync_file_system/sync_callbacks.h" 17 #include "chrome/browser/sync_file_system/sync_callbacks.h"
15 #include "google_apis/drive/drive_api_error_codes.h" 18 #include "google_apis/drive/drive_api_error_codes.h"
16 19
17 namespace drive { 20 namespace drive {
18 class DriveServiceInterface; 21 class DriveServiceInterface;
19 } 22 }
(...skipping 11 matching lines...) Expand all
31 typedef RemoteFileSyncService::UninstallFlag UninstallFlag; 34 typedef RemoteFileSyncService::UninstallFlag UninstallFlag;
32 UninstallAppTask(SyncEngineContext* sync_context, 35 UninstallAppTask(SyncEngineContext* sync_context,
33 const std::string& app_id, 36 const std::string& app_id,
34 UninstallFlag uninstall_flag); 37 UninstallFlag uninstall_flag);
35 ~UninstallAppTask() override; 38 ~UninstallAppTask() override;
36 39
37 void RunExclusive(const SyncStatusCallback& callback) override; 40 void RunExclusive(const SyncStatusCallback& callback) override;
38 41
39 private: 42 private:
40 void DidDeleteAppRoot(const SyncStatusCallback& callback, 43 void DidDeleteAppRoot(const SyncStatusCallback& callback,
41 int64 change_id, 44 int64_t change_id,
42 google_apis::DriveApiErrorCode error); 45 google_apis::DriveApiErrorCode error);
43 46
44 bool IsContextReady(); 47 bool IsContextReady();
45 MetadataDatabase* metadata_database(); 48 MetadataDatabase* metadata_database();
46 drive::DriveServiceInterface* drive_service(); 49 drive::DriveServiceInterface* drive_service();
47 50
48 SyncEngineContext* sync_context_; // Not owned. 51 SyncEngineContext* sync_context_; // Not owned.
49 52
50 std::string app_id_; 53 std::string app_id_;
51 UninstallFlag uninstall_flag_; 54 UninstallFlag uninstall_flag_;
52 int64 app_root_tracker_id_; 55 int64_t app_root_tracker_id_;
53 56
54 base::WeakPtrFactory<UninstallAppTask> weak_ptr_factory_; 57 base::WeakPtrFactory<UninstallAppTask> weak_ptr_factory_;
55 58
56 DISALLOW_COPY_AND_ASSIGN(UninstallAppTask); 59 DISALLOW_COPY_AND_ASSIGN(UninstallAppTask);
57 }; 60 };
58 61
59 } // namespace drive_backend 62 } // namespace drive_backend
60 } // namespace sync_file_system 63 } // namespace sync_file_system
61 64
62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_UNINSTALL_APP_TASK_H_ 65 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_UNINSTALL_APP_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698