OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | |
11 #include "chrome/browser/sync/engine/model_safe_worker.h" | 10 #include "chrome/browser/sync/engine/model_safe_worker.h" |
12 #include "chrome/browser/sync/engine/syncer_command.h" | 11 #include "chrome/browser/sync/engine/syncer_command.h" |
13 #include "chrome/browser/sync/protocol/sync.pb.h" | |
14 #include "chrome/browser/sync/syncable/model_type.h" | 12 #include "chrome/browser/sync/syncable/model_type.h" |
15 | 13 |
16 namespace sync_pb { | 14 namespace sync_pb { |
17 class EntitySpecifics; | 15 class EntitySpecifics; |
18 } | 16 } |
19 | 17 |
20 namespace browser_sync { | 18 namespace browser_sync { |
21 | 19 |
22 // Determine the enabled datatypes, download a batch of updates for them | 20 // Determine the enabled datatypes, download a batch of updates for them |
23 // from the server, place the result in the SyncSession for further processing. | 21 // from the server, place the result in the SyncSession for further processing. |
(...skipping 18 matching lines...) Expand all Loading... |
42 DownloadUpdatesCommand(); | 40 DownloadUpdatesCommand(); |
43 virtual ~DownloadUpdatesCommand(); | 41 virtual ~DownloadUpdatesCommand(); |
44 | 42 |
45 // SyncerCommand implementation. | 43 // SyncerCommand implementation. |
46 virtual void ExecuteImpl(sessions::SyncSession* session); | 44 virtual void ExecuteImpl(sessions::SyncSession* session); |
47 | 45 |
48 void SetRequestedTypes(const syncable::ModelTypeBitSet& target_datatypes, | 46 void SetRequestedTypes(const syncable::ModelTypeBitSet& target_datatypes, |
49 sync_pb::EntitySpecifics* filter_protobuf); | 47 sync_pb::EntitySpecifics* filter_protobuf); |
50 | 48 |
51 private: | 49 private: |
52 FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesCommandTest, VerifyAppendDebugInfo); | |
53 void AppendClientDebugInfoIfNeeded(sessions::SyncSession* session, | |
54 sync_pb::DebugInfo* debug_info); | |
55 DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesCommand); | 50 DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesCommand); |
56 }; | 51 }; |
57 | 52 |
58 } // namespace browser_sync | 53 } // namespace browser_sync |
59 | 54 |
60 #endif // CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ | 55 #endif // CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ |
61 | 56 |
OLD | NEW |