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 CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_ | 6 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_H_ |
7 #define CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_ | 7 #define SYNC_ENGINE_SYNC_SCHEDULER_H_ |
8 #pragma once | 8 #pragma once |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/linked_ptr.h" | 15 #include "base/memory/linked_ptr.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "base/timer.h" | 20 #include "base/timer.h" |
21 #include "chrome/browser/sync/engine/net/server_connection_manager.h" | 21 #include "sync/engine/net/server_connection_manager.h" |
22 #include "chrome/browser/sync/engine/nudge_source.h" | 22 #include "sync/engine/nudge_source.h" |
23 #include "chrome/browser/sync/engine/polling_constants.h" | 23 #include "sync/engine/polling_constants.h" |
24 #include "chrome/browser/sync/engine/syncer.h" | 24 #include "sync/engine/syncer.h" |
25 #include "chrome/browser/sync/sessions/sync_session_context.h" | 25 #include "sync/sessions/sync_session.h" |
26 #include "chrome/browser/sync/sessions/sync_session.h" | 26 #include "sync/sessions/sync_session_context.h" |
27 #include "chrome/browser/sync/syncable/model_type_payload_map.h" | 27 #include "sync/syncable/model_type_payload_map.h" |
28 #include "chrome/browser/sync/util/weak_handle.h" | 28 #include "sync/util/weak_handle.h" |
29 | 29 |
30 class MessageLoop; | 30 class MessageLoop; |
31 | 31 |
32 namespace tracked_objects { | 32 namespace tracked_objects { |
33 class Location; | 33 class Location; |
34 } // namespace tracked_objects | 34 } // namespace tracked_objects |
35 | 35 |
36 namespace browser_sync { | 36 namespace browser_sync { |
37 | 37 |
38 struct ServerConnectionEvent; | 38 struct ServerConnectionEvent; |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // Invoked to run through the sync cycle. | 411 // Invoked to run through the sync cycle. |
412 scoped_ptr<Syncer> syncer_; | 412 scoped_ptr<Syncer> syncer_; |
413 | 413 |
414 scoped_ptr<sessions::SyncSessionContext> session_context_; | 414 scoped_ptr<sessions::SyncSessionContext> session_context_; |
415 | 415 |
416 DISALLOW_COPY_AND_ASSIGN(SyncScheduler); | 416 DISALLOW_COPY_AND_ASSIGN(SyncScheduler); |
417 }; | 417 }; |
418 | 418 |
419 } // namespace browser_sync | 419 } // namespace browser_sync |
420 | 420 |
421 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_ | 421 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_ |
OLD | NEW |