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

Side by Side Diff: components/sync_sessions/synced_session.h

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix gn. Created 4 years, 3 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_H_ 5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_H_
6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_H_ 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "components/sessions/core/session_id.h" 14 #include "components/sessions/core/session_id.h"
15 #include "components/sessions/core/session_types.h" 15 #include "components/sessions/core/session_types.h"
16 #include "components/sync/protocol/session_specifics.pb.h" 16 #include "components/sync/protocol/session_specifics.pb.h"
17 17
18 namespace sessions { 18 namespace sessions {
19 struct SessionWindow; 19 struct SessionWindow;
20 } 20 }
21 21
22 namespace sync_driver { 22 namespace sync_sessions {
23 23
24 // Defines a synced session for use by session sync. A synced session is a 24 // Defines a synced session for use by session sync. A synced session is a
25 // list of windows along with a unique session identifer (tag) and meta-data 25 // list of windows along with a unique session identifer (tag) and meta-data
26 // about the device being synced. 26 // about the device being synced.
27 struct SyncedSession { 27 struct SyncedSession {
28 typedef std::map<SessionID::id_type, sessions::SessionWindow*> 28 typedef std::map<SessionID::id_type, sessions::SessionWindow*>
29 SyncedWindowMap; 29 SyncedWindowMap;
30 30
31 // The type of device. 31 // The type of device.
32 // Please keep in sync with ForeignSessionHelper.java 32 // Please keep in sync with ForeignSessionHelper.java
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 // Convert this object to its protocol buffer equivalent. Shallow conversion, 98 // Convert this object to its protocol buffer equivalent. Shallow conversion,
99 // does not create SessionTab protobufs. 99 // does not create SessionTab protobufs.
100 sync_pb::SessionHeader ToSessionHeader() const; 100 sync_pb::SessionHeader ToSessionHeader() const;
101 101
102 private: 102 private:
103 DISALLOW_COPY_AND_ASSIGN(SyncedSession); 103 DISALLOW_COPY_AND_ASSIGN(SyncedSession);
104 }; 104 };
105 105
106 } // namespace sync_driver 106 } // namespace sync_sessions
107 107
108 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_H_ 108 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_H_
OLDNEW
« no previous file with comments | « components/sync_sessions/sync_sessions_metrics_unittest.cc ('k') | components/sync_sessions/synced_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698