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

Unified Diff: sync/internal_api/public/sessions/model_neutral_state.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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: sync/internal_api/public/sessions/model_neutral_state.h
diff --git a/sync/internal_api/public/sessions/model_neutral_state.h b/sync/internal_api/public/sessions/model_neutral_state.h
deleted file mode 100644
index 6a785a52305cccf0c3f30f4cc53f60b6c5c84c43..0000000000000000000000000000000000000000
--- a/sync/internal_api/public/sessions/model_neutral_state.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 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 SYNC_INTERNAL_API_PUBLIC_SESSIONS_MODEL_NEUTRAL_STATE_H_
-#define SYNC_INTERNAL_API_PUBLIC_SESSIONS_MODEL_NEUTRAL_STATE_H_
-
-#include "sync/base/sync_export.h"
-#include "sync/internal_api/public/base/model_type.h"
-#include "sync/internal_api/public/util/syncer_error.h"
-#include "sync/protocol/sync.pb.h"
-
-namespace syncer {
-namespace sessions {
-
-// Grouping of all state that applies to all model types. Note that some
-// components of the global grouping can internally implement finer grained
-// scope control, but the top level entity is still a singleton with respect to
-// model types.
-struct SYNC_EXPORT ModelNeutralState {
- ModelNeutralState();
- ModelNeutralState(const ModelNeutralState& other);
- ~ModelNeutralState();
-
- // The set of types for which updates were requested from the server.
- ModelTypeSet get_updates_request_types;
-
- // The set of types for which commits were sent to the server.
- ModelTypeSet commit_request_types;
-
- int num_successful_commits;
-
- // This is needed for monitoring extensions activity.
- int num_successful_bookmark_commits;
-
- // Download event counters.
- int num_updates_downloaded_total;
- int num_tombstone_updates_downloaded_total;
- int num_reflected_updates_downloaded_total;
-
- // Update application and conflicts.
- int num_updates_applied;
- int num_encryption_conflicts;
- int num_server_conflicts;
- int num_hierarchy_conflicts;
-
- // Overwrites due to conflict resolution counters.
- int num_local_overwrites;
- int num_server_overwrites;
-
- // Records the most recent results of GetKey, PostCommit and GetUpdates
- // commands.
- SyncerError last_get_key_result;
- SyncerError last_download_updates_result;
- SyncerError commit_result;
-
- // Set to true by PostCommitMessageCommand if any commits were successful.
- bool items_committed;
-};
-
-SYNC_EXPORT bool HasSyncerError(const ModelNeutralState& state);
-
-} // namespace sessions
-} // namespace syncer
-
-#endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_MODEL_NEUTRAL_STATE_H_
« no previous file with comments | « sync/internal_api/public/sessions/commit_counters.cc ('k') | sync/internal_api/public/sessions/model_neutral_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698