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

Side by Side Diff: components/gcm_driver/gcm_delayed_task_controller.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 COMPONENTS_GCM_DRIVER_GCM_DELAYED_TASK_CONTROLLER_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DELAYED_TASK_CONTROLLER_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_DELAYED_TASK_CONTROLLER_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_DELAYED_TASK_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h"
11 12
12 namespace gcm { 13 namespace gcm {
13 14
14 // Helper class to save tasks to run until we're ready to execute them. 15 // Helper class to save tasks to run until we're ready to execute them.
15 class GCMDelayedTaskController { 16 class GCMDelayedTaskController {
16 public: 17 public:
17 GCMDelayedTaskController(); 18 GCMDelayedTaskController();
18 ~GCMDelayedTaskController(); 19 ~GCMDelayedTaskController();
19 20
20 // Adds a task that will be invoked once we're ready. 21 // Adds a task that will be invoked once we're ready.
(...skipping 12 matching lines...) Expand all
33 bool ready_; 34 bool ready_;
34 35
35 std::vector<base::Closure> delayed_tasks_; 36 std::vector<base::Closure> delayed_tasks_;
36 37
37 DISALLOW_COPY_AND_ASSIGN(GCMDelayedTaskController); 38 DISALLOW_COPY_AND_ASSIGN(GCMDelayedTaskController);
38 }; 39 };
39 40
40 } // namespace gcm 41 } // namespace gcm
41 42
42 #endif // COMPONENTS_GCM_DRIVER_GCM_DELAYED_TASK_CONTROLLER_H_ 43 #endif // COMPONENTS_GCM_DRIVER_GCM_DELAYED_TASK_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_connection_observer.h ('k') | components/gcm_driver/gcm_delayed_task_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698