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

Side by Side Diff: sync/internal_api/public/sessions/sync_source_info.h

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SOURCE_INFO_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SOURCE_INFO_H_
7
8 #include "base/basictypes.h"
9 #include "sync/base/sync_export.h"
10 #include "sync/internal_api/public/base/model_type.h"
11 #include "sync/internal_api/public/base/model_type_invalidation_map.h"
12 #include "sync/protocol/sync.pb.h"
13
14 namespace base {
15 class DictionaryValue;
16 }
17
18 namespace syncer {
19 namespace sessions {
20
21 // A container for the source of a sync session. This includes the update
22 // source, the datatypes triggering the sync session, and possible session
23 // specific payloads which should be sent to the server.
24 struct SYNC_EXPORT SyncSourceInfo {
25 SyncSourceInfo();
26 explicit SyncSourceInfo(const ModelTypeInvalidationMap& t);
27 SyncSourceInfo(
28 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& u,
29 const ModelTypeInvalidationMap& t);
30 ~SyncSourceInfo();
31
32 // Caller takes ownership of the returned dictionary.
33 base::DictionaryValue* ToValue() const;
34
35 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source;
36 ModelTypeInvalidationMap types;
37 };
38
39 } // namespace sessions
40 } // namespace syncer
41
42 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SOURCE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698