Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4626)

Unified Diff: chrome/browser/sync/engine/download_updates_command.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/engine/download_updates_command.h
diff --git a/chrome/browser/sync/engine/download_updates_command.h b/chrome/browser/sync/engine/download_updates_command.h
deleted file mode 100644
index b15a04e249dc3efae930456c6eb25fcc12914b10..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/engine/download_updates_command.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_
-#define CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/gtest_prod_util.h"
-#include "chrome/browser/sync/engine/model_safe_worker.h"
-#include "chrome/browser/sync/engine/syncer_command.h"
-#include "chrome/browser/sync/syncable/model_type.h"
-#include "sync/protocol/sync.pb.h"
-
-namespace sync_pb {
-class EntitySpecifics;
-}
-
-namespace browser_sync {
-
-// Determine the enabled datatypes, download a batch of updates for them
-// from the server, place the result in the SyncSession for further processing.
-//
-// The main inputs to this operation are the download_progress state
-// in the syncable::Directory, and the set of enabled types as indicated by
-// the SyncSession. DownloadUpdatesCommand will fetch updates for
-// all the enabled types, using download_progress to indicate the starting
-// point to the server. DownloadUpdatesCommand stores the server response
-// in the SyncSession. Only one server request is performed per Execute
-// operation. A loop that causes multiple Execute operations within a sync
-// session can be found in the Syncer logic. When looping, the
-// DownloadUpdatesCommand consumes the information stored by the
-// StoreTimestampsCommand.
-//
-// In practice, DownloadUpdatesCommand should loop until all updates are
-// downloaded for all enabled datatypes (i.e., until the server indicates
-// changes_remaining == 0 in the GetUpdates response), or until an error
-// is encountered.
-class DownloadUpdatesCommand : public SyncerCommand {
- public:
- // |create_mobile_bookmarks_folder| controls whether or not to
- // create the mobile bookmarks folder if it's not already created.
- // Should be set to true only by mobile clients.
- explicit DownloadUpdatesCommand(bool create_mobile_bookmarks_folder);
- virtual ~DownloadUpdatesCommand();
-
- // SyncerCommand implementation.
- virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE;
-
- private:
- FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesCommandTest, VerifyAppendDebugInfo);
- void AppendClientDebugInfoIfNeeded(sessions::SyncSession* session,
- sync_pb::DebugInfo* debug_info);
-
- const bool create_mobile_bookmarks_folder_;
-
- DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesCommand);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_ENGINE_DOWNLOAD_UPDATES_COMMAND_H_
-
« no previous file with comments | « chrome/browser/sync/engine/conflict_resolver.cc ('k') | chrome/browser/sync/engine/download_updates_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698