OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A class to schedule syncer tasks intelligently. | 5 // A class to schedule syncer tasks intelligently. |
6 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_H_ | 6 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_H_ |
7 #define SYNC_ENGINE_SYNC_SCHEDULER_H_ | 7 #define SYNC_ENGINE_SYNC_SCHEDULER_H_ |
8 #pragma once | |
9 | 8 |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/callback.h" | 11 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
15 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
16 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 scoped_ptr<Syncer> syncer_; | 397 scoped_ptr<Syncer> syncer_; |
399 | 398 |
400 sessions::SyncSessionContext *session_context_; | 399 sessions::SyncSessionContext *session_context_; |
401 | 400 |
402 DISALLOW_COPY_AND_ASSIGN(SyncScheduler); | 401 DISALLOW_COPY_AND_ASSIGN(SyncScheduler); |
403 }; | 402 }; |
404 | 403 |
405 } // namespace syncer | 404 } // namespace syncer |
406 | 405 |
407 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_ | 406 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_ |
OLD | NEW |