OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // changes_remaining == 0 in the GetUpdates response), or until an error | 39 // changes_remaining == 0 in the GetUpdates response), or until an error |
40 // is encountered. | 40 // is encountered. |
41 class DownloadUpdatesCommand : public SyncerCommand { | 41 class DownloadUpdatesCommand : public SyncerCommand { |
42 public: | 42 public: |
43 DownloadUpdatesCommand(); | 43 DownloadUpdatesCommand(); |
44 virtual ~DownloadUpdatesCommand(); | 44 virtual ~DownloadUpdatesCommand(); |
45 | 45 |
46 // SyncerCommand implementation. | 46 // SyncerCommand implementation. |
47 virtual void ExecuteImpl(sessions::SyncSession* session) OVERRIDE; | 47 virtual void ExecuteImpl(sessions::SyncSession* session) OVERRIDE; |
48 | 48 |
49 void SetRequestedTypes(const syncable::ModelTypeBitSet& target_datatypes, | |
50 sync_pb::EntitySpecifics* filter_protobuf); | |
51 | |
52 private: | 49 private: |
53 FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesCommandTest, VerifyAppendDebugInfo); | 50 FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesCommandTest, VerifyAppendDebugInfo); |
54 void AppendClientDebugInfoIfNeeded(sessions::SyncSession* session, | 51 void AppendClientDebugInfoIfNeeded(sessions::SyncSession* session, |
55 sync_pb::DebugInfo* debug_info); | 52 sync_pb::DebugInfo* debug_info); |
56 DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesCommand); | 53 DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesCommand); |
57 }; | 54 }; |
58 | 55 |
59 } // namespace browser_sync | 56 } // namespace browser_sync |
60 | 57 |
61 #endif // CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ | 58 #endif // CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_ |
62 | 59 |
OLD | NEW |