OLD | NEW |
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_TEST_INTEGRATION_SESSIONS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSIONS_HELPER_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSIONS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSIONS_HELPER_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "chrome/browser/sync/test/integration/sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
13 #include "components/sessions/core/session_types.h" | 13 #include "components/sessions/core/session_types.h" |
| 14 #include "components/sync/syncable/nigori_util.h" |
14 #include "components/sync_sessions/synced_session.h" | 15 #include "components/sync_sessions/synced_session.h" |
15 #include "sync/syncable/nigori_util.h" | |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 | 18 |
19 namespace sessions_helper { | 19 namespace sessions_helper { |
20 | 20 |
21 typedef std::vector<const sync_driver::SyncedSession*> SyncedSessionVector; | 21 typedef std::vector<const sync_driver::SyncedSession*> SyncedSessionVector; |
22 typedef sync_driver::SyncedSession::SyncedWindowMap SessionWindowMap; | 22 typedef sync_driver::SyncedSession::SyncedWindowMap SessionWindowMap; |
23 | 23 |
24 // Wrapper around a SyncedWindowMap that will automatically delete the | 24 // Wrapper around a SyncedWindowMap that will automatically delete the |
25 // SessionWindow pointers it holds. | 25 // SessionWindow pointers it holds. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 // Deletes the foreign session with tag |session_tag| from the profile specified | 122 // Deletes the foreign session with tag |session_tag| from the profile specified |
123 // by |index|. This will affect all synced clients. | 123 // by |index|. This will affect all synced clients. |
124 // Note: We pass the session_tag in by value to ensure it's not a reference | 124 // Note: We pass the session_tag in by value to ensure it's not a reference |
125 // to the session tag within the SyncedSession we plan to delete. | 125 // to the session tag within the SyncedSession we plan to delete. |
126 void DeleteForeignSession(int index, std::string session_tag); | 126 void DeleteForeignSession(int index, std::string session_tag); |
127 | 127 |
128 } // namespace sessions_helper | 128 } // namespace sessions_helper |
129 | 129 |
130 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSIONS_HELPER_H_ | 130 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSIONS_HELPER_H_ |
OLD | NEW |