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

Unified Diff: components/sync/sessions/model_neutral_state.h

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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
« no previous file with comments | « components/sync/sessions/commit_counters.cc ('k') | components/sync/sessions/model_neutral_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/sessions/model_neutral_state.h
diff --git a/components/sync/sessions/model_neutral_state.h b/components/sync/sessions/model_neutral_state.h
deleted file mode 100644
index 660948d8406522662c89c52e8f2833ecb3ed49bd..0000000000000000000000000000000000000000
--- a/components/sync/sessions/model_neutral_state.h
+++ /dev/null
@@ -1,65 +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 COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_
-#define COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_
-
-#include "components/sync/base/model_type.h"
-#include "components/sync/base/syncer_error.h"
-#include "components/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 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;
-};
-
-bool HasSyncerError(const ModelNeutralState& state);
-
-} // namespace sessions
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_
« no previous file with comments | « components/sync/sessions/commit_counters.cc ('k') | components/sync/sessions/model_neutral_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698