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

Side by Side Diff: chrome/browser/sync/test/integration/sessions_helper.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "chrome/browser/sessions/session_types.h" 13 #include "chrome/browser/sessions/session_types.h"
14 #include "chrome/browser/sync/glue/synced_session.h" 14 #include "chrome/browser/sync/glue/synced_session.h"
15 #include "chrome/browser/sync/engine/nigori_util.h"
16 #include "chrome/browser/sync/test/integration/sync_test.h" 15 #include "chrome/browser/sync/test/integration/sync_test.h"
16 #include "sync/engine/nigori_util.h"
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace sessions_helper { 20 namespace sessions_helper {
21 21
22 typedef std::vector<const browser_sync::SyncedSession*> SyncedSessionVector; 22 typedef std::vector<const browser_sync::SyncedSession*> SyncedSessionVector;
23 typedef browser_sync::SyncedSession::SyncedWindowMap SessionWindowMap; 23 typedef browser_sync::SyncedSession::SyncedWindowMap SessionWindowMap;
24 24
25 // Wrapper around a SyncedWindowMap that will automatically delete the 25 // Wrapper around a SyncedWindowMap that will automatically delete the
26 // SessionWindow pointers it holds. 26 // SessionWindow pointers it holds.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // Deletes the foreign session with tag |session_tag| from the profile specified 117 // Deletes the foreign session with tag |session_tag| from the profile specified
118 // by |index|. This will affect all synced clients. 118 // by |index|. This will affect all synced clients.
119 // Note: We pass the session_tag in by value to ensure it's not a reference 119 // Note: We pass the session_tag in by value to ensure it's not a reference
120 // to the session tag within the SyncedSession we plan to delete. 120 // to the session tag within the SyncedSession we plan to delete.
121 void DeleteForeignSession(int index, std::string session_tag); 121 void DeleteForeignSession(int index, std::string session_tag);
122 122
123 } // namespace sessions_helper 123 } // namespace sessions_helper
124 124
125 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSIONS_HELPER_H_ 125 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSIONS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698