| Index: sync/internal_api/public/sessions/sync_session_snapshot.h
|
| diff --git a/sync/internal_api/public/sessions/sync_session_snapshot.h b/sync/internal_api/public/sessions/sync_session_snapshot.h
|
| deleted file mode 100644
|
| index d419377bd19a03f29845fd0f401b25a20edfbb65..0000000000000000000000000000000000000000
|
| --- a/sync/internal_api/public/sessions/sync_session_snapshot.h
|
| +++ /dev/null
|
| @@ -1,100 +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_SYNC_SESSION_SNAPSHOT_H_
|
| -#define SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
|
| -
|
| -#include <stddef.h>
|
| -
|
| -#include <string>
|
| -#include <vector>
|
| -
|
| -#include "base/time/time.h"
|
| -#include "sync/base/sync_export.h"
|
| -#include "sync/internal_api/public/base/model_type.h"
|
| -#include "sync/internal_api/public/base/progress_marker_map.h"
|
| -#include "sync/internal_api/public/sessions/model_neutral_state.h"
|
| -
|
| -namespace base {
|
| -class DictionaryValue;
|
| -}
|
| -
|
| -namespace syncer {
|
| -namespace sessions {
|
| -
|
| -// An immutable snapshot of state from a SyncSession. Convenient to use as
|
| -// part of notifications as it is inherently thread-safe.
|
| -// TODO(zea): if copying this all over the place starts getting expensive,
|
| -// consider passing around immutable references instead of values.
|
| -// Default copy and assign welcome.
|
| -class SYNC_EXPORT SyncSessionSnapshot {
|
| - public:
|
| - SyncSessionSnapshot();
|
| - SyncSessionSnapshot(
|
| - const ModelNeutralState& model_neutral_state,
|
| - const ProgressMarkerMap& download_progress_markers,
|
| - bool is_silenced,
|
| - int num_encryption_conflicts,
|
| - int num_hierarchy_conflicts,
|
| - int num_server_conflicts,
|
| - bool notifications_enabled,
|
| - size_t num_entries,
|
| - base::Time sync_start_time,
|
| - base::Time poll_finish_time,
|
| - const std::vector<int>& num_entries_by_type,
|
| - const std::vector<int>& num_to_delete_entries_by_type,
|
| - sync_pb::GetUpdatesCallerInfo::GetUpdatesSource legacy_updates_source);
|
| - SyncSessionSnapshot(const SyncSessionSnapshot& other);
|
| - ~SyncSessionSnapshot();
|
| -
|
| - std::unique_ptr<base::DictionaryValue> ToValue() const;
|
| -
|
| - std::string ToString() const;
|
| -
|
| - ModelNeutralState model_neutral_state() const {
|
| - return model_neutral_state_;
|
| - }
|
| - const ProgressMarkerMap& download_progress_markers() const;
|
| - bool is_silenced() const;
|
| - int num_encryption_conflicts() const;
|
| - int num_hierarchy_conflicts() const;
|
| - int num_server_conflicts() const;
|
| - bool notifications_enabled() const;
|
| - size_t num_entries() const;
|
| - base::Time sync_start_time() const;
|
| - base::Time poll_finish_time() const;
|
| - const std::vector<int>& num_entries_by_type() const;
|
| - const std::vector<int>& num_to_delete_entries_by_type() const;
|
| - sync_pb::GetUpdatesCallerInfo::GetUpdatesSource legacy_updates_source() const;
|
| -
|
| - // Set iff this snapshot was not built using the default constructor.
|
| - bool is_initialized() const;
|
| -
|
| - private:
|
| - ModelNeutralState model_neutral_state_;
|
| - ProgressMarkerMap download_progress_markers_;
|
| - bool is_silenced_;
|
| - int num_encryption_conflicts_;
|
| - int num_hierarchy_conflicts_;
|
| - int num_server_conflicts_;
|
| - bool notifications_enabled_;
|
| - size_t num_entries_;
|
| - base::Time sync_start_time_;
|
| - base::Time poll_finish_time_;
|
| -
|
| - std::vector<int> num_entries_by_type_;
|
| - std::vector<int> num_to_delete_entries_by_type_;
|
| -
|
| - // This enum value used to be an important part of the sync protocol, but is
|
| - // now deprecated. We continue to use it in the snapshot because there is
|
| - // still some value in displaying it on the about:sync page.
|
| - sync_pb::GetUpdatesCallerInfo::GetUpdatesSource legacy_updates_source_;
|
| -
|
| - bool is_initialized_;
|
| -};
|
| -
|
| -} // namespace sessions
|
| -} // namespace syncer
|
| -
|
| -#endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
|
|
|