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

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

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SYNC_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <unordered_map>
10 11
11 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "base/observer_list.h" 15 #include "base/observer_list.h"
15 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" 16 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
16 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" 17 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h"
17 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" 18 #include "chrome/browser/sync_file_system/remote_file_sync_service.h"
18 #include "chrome/browser/sync_file_system/sync_callbacks.h" 19 #include "chrome/browser/sync_file_system/sync_callbacks.h"
19 #include "chrome/browser/sync_file_system/task_logger.h" 20 #include "chrome/browser/sync_file_system/task_logger.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 private: 104 private:
104 friend class DriveBackendSyncTest; 105 friend class DriveBackendSyncTest;
105 friend class SyncWorkerTest; 106 friend class SyncWorkerTest;
106 107
107 enum AppStatus { 108 enum AppStatus {
108 APP_STATUS_ENABLED, 109 APP_STATUS_ENABLED,
109 APP_STATUS_DISABLED, 110 APP_STATUS_DISABLED,
110 APP_STATUS_UNINSTALLED, 111 APP_STATUS_UNINSTALLED,
111 }; 112 };
112 113
113 typedef base::hash_map<std::string, AppStatus> AppStatusMap; 114 using AppStatusMap = std::unordered_map<std::string, AppStatus>;
114 115
115 void DoDisableApp(const std::string& app_id, 116 void DoDisableApp(const std::string& app_id,
116 const SyncStatusCallback& callback); 117 const SyncStatusCallback& callback);
117 void DoEnableApp(const std::string& app_id, 118 void DoEnableApp(const std::string& app_id,
118 const SyncStatusCallback& callback); 119 const SyncStatusCallback& callback);
119 120
120 void PostInitializeTask(); 121 void PostInitializeTask();
121 void DidInitialize(SyncEngineInitializer* initializer, 122 void DidInitialize(SyncEngineInitializer* initializer,
122 SyncStatusCode status); 123 SyncStatusCode status);
123 void UpdateRegisteredApps(); 124 void UpdateRegisteredApps();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 base::SequenceChecker sequence_checker_; 176 base::SequenceChecker sequence_checker_;
176 177
177 base::WeakPtrFactory<SyncWorker> weak_ptr_factory_; 178 base::WeakPtrFactory<SyncWorker> weak_ptr_factory_;
178 DISALLOW_COPY_AND_ASSIGN(SyncWorker); 179 DISALLOW_COPY_AND_ASSIGN(SyncWorker);
179 }; 180 };
180 181
181 } // namespace drive_backend 182 } // namespace drive_backend
182 } // namespace sync_file_system 183 } // namespace sync_file_system
183 184
184 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ 185 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698