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

Side by Side Diff: chrome/browser/sync/glue/synced_session.h

Issue 480883002: Move session_id.{cc,h} from chrome/browser/sessions to components/sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "chrome/browser/sessions/session_id.h"
13 #include "chrome/browser/sessions/session_types.h" 12 #include "chrome/browser/sessions/session_types.h"
13 #include "components/sessions/session_id.h"
14 #include "sync/protocol/session_specifics.pb.h" 14 #include "sync/protocol/session_specifics.pb.h"
15 15
16 namespace content { 16 namespace content {
17 class NavigationEntry; 17 class NavigationEntry;
18 } 18 }
19 19
20 namespace browser_sync { 20 namespace browser_sync {
21 21
22 // Defines a synced session for use by session sync. A synced session is a 22 // Defines a synced session for use by session sync. A synced session is a
23 // list of windows along with a unique session identifer (tag) and meta-data 23 // list of windows along with a unique session identifer (tag) and meta-data
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Note: chrome:// and file:// are not considered valid urls (for syncing). 93 // Note: chrome:// and file:// are not considered valid urls (for syncing).
94 bool ShouldSyncSessionTab(const SessionTab& tab); 94 bool ShouldSyncSessionTab(const SessionTab& tab);
95 95
96 // Checks whether the window has tabs to sync. If no tabs to sync, it returns 96 // Checks whether the window has tabs to sync. If no tabs to sync, it returns
97 // true, false otherwise. 97 // true, false otherwise.
98 bool SessionWindowHasNoTabsToSync(const SessionWindow& window); 98 bool SessionWindowHasNoTabsToSync(const SessionWindow& window);
99 99
100 } // namespace browser_sync 100 } // namespace browser_sync
101 101
102 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ 102 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/session_sync_test_helper.h ('k') | chrome/browser/sync/glue/synced_session_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698