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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/task_dependency_manager.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 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_TASK_DEPENDENCY_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_TASK_DEPENDENCY_MANAGER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_TASK_DEPENDENCY_MANAGER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_TASK_DEPENDENCY_MANAGER_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <set> 11 #include <set>
10 #include <string> 12 #include <string>
11 #include <vector> 13 #include <vector>
12 14
13 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/sync_file_system/subtree_set.h" 18 #include "chrome/browser/sync_file_system/subtree_set.h"
16 19
17 namespace sync_file_system { 20 namespace sync_file_system {
18 namespace drive_backend { 21 namespace drive_backend {
19 22
20 struct TaskBlocker { 23 struct TaskBlocker {
21 bool exclusive; 24 bool exclusive;
22 std::string app_id; 25 std::string app_id;
23 std::vector<base::FilePath> paths; 26 std::vector<base::FilePath> paths;
24 std::vector<std::string> file_ids; 27 std::vector<std::string> file_ids;
25 std::vector<int64> tracker_ids; 28 std::vector<int64_t> tracker_ids;
26 29
27 TaskBlocker(); 30 TaskBlocker();
28 ~TaskBlocker(); 31 ~TaskBlocker();
29 }; 32 };
30 33
31 // This class manages dependency of the background tasks. 34 // This class manages dependency of the background tasks.
32 class TaskDependencyManager { 35 class TaskDependencyManager {
33 public: 36 public:
34 TaskDependencyManager(); 37 TaskDependencyManager();
35 ~TaskDependencyManager(); 38 ~TaskDependencyManager();
(...skipping 10 matching lines...) Expand all
46 49
47 void Erase(const TaskBlocker* task_blocker); 50 void Erase(const TaskBlocker* task_blocker);
48 51
49 private: 52 private:
50 friend class TaskDependencyManagerTest; 53 friend class TaskDependencyManagerTest;
51 54
52 int running_task_count_; 55 int running_task_count_;
53 bool running_exclusive_task_; 56 bool running_exclusive_task_;
54 std::map<std::string, SubtreeSet> paths_by_app_id_; 57 std::map<std::string, SubtreeSet> paths_by_app_id_;
55 std::set<std::string> file_ids_; 58 std::set<std::string> file_ids_;
56 std::set<int64> tracker_ids_; 59 std::set<int64_t> tracker_ids_;
57 60
58 DISALLOW_COPY_AND_ASSIGN(TaskDependencyManager); 61 DISALLOW_COPY_AND_ASSIGN(TaskDependencyManager);
59 }; 62 };
60 63
61 } // namespace drive_backend 64 } // namespace drive_backend
62 } // namespace sync_file_system 65 } // namespace sync_file_system
63 66
64 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_TASK_DEPENDENCY_MANAGER _H_ 67 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_TASK_DEPENDENCY_MANAGER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698