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

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

Issue 1877083002: [Sync] Moved tab_node_id tracking to session object and improved foreign session garbage collection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved tab_node_ids to session object, resumed aggressive cleanup. Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/sync/glue/session_sync_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SESSION_SYNC_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 static void VerifySyncedSession( 35 static void VerifySyncedSession(
36 const std::string& tag, 36 const std::string& tag,
37 const std::vector<std::vector<SessionID::id_type>>& windows, 37 const std::vector<std::vector<SessionID::id_type>>& windows,
38 const sync_driver::SyncedSession& session); 38 const sync_driver::SyncedSession& session);
39 39
40 void BuildTabSpecifics(const std::string& tag, 40 void BuildTabSpecifics(const std::string& tag,
41 int window_id, 41 int window_id,
42 int tab_id, 42 int tab_id,
43 sync_pb::SessionSpecifics* tab_base); 43 sync_pb::SessionSpecifics* tab_base);
44 44
45 void BuildTabSpecifics(const std::string& tag,
Nicolas Zea 2016/04/12 20:38:03 This entire file should really have comments, but
skym 2016/04/12 22:12:14 Done.
46 int window_id,
47 int tab_id,
48 int tab_node_id,
49 sync_pb::SessionSpecifics* tab_base);
50
45 sync_pb::SessionSpecifics BuildForeignSession( 51 sync_pb::SessionSpecifics BuildForeignSession(
46 const std::string& tag, 52 const std::string& tag,
47 const std::vector<SessionID::id_type>& tab_list, 53 const std::vector<SessionID::id_type>& tab_list,
48 std::vector<sync_pb::SessionSpecifics>* tabs); 54 std::vector<sync_pb::SessionSpecifics>* tabs);
49 55
50 void Reset(); 56 void Reset();
51 57
52 private: 58 private:
53 int max_tab_node_id_; 59 int max_tab_node_id_;
54 60
55 DISALLOW_COPY_AND_ASSIGN(SessionSyncTestHelper); 61 DISALLOW_COPY_AND_ASSIGN(SessionSyncTestHelper);
56 }; 62 };
57 63
58 } // namespace browser_sync 64 } // namespace browser_sync
59 65
60 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ 66 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/glue/session_sync_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698