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