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

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 5 #ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNCED_TAB_DELEGATE_H_
6 #define CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNCED_TAB_DELEGATE_H_
7
8 #include <string>
9 #include <vector>
7 10
8 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
9 #include "base/macros.h" 12 #include "base/macros.h"
10 #include "components/sessions/core/session_id.h" 13 #include "components/sessions/core/session_id.h"
11 #include "components/sync_sessions/synced_tab_delegate.h" 14 #include "components/sync_sessions/synced_tab_delegate.h"
12 #include "ios/web/public/web_state/web_state_user_data.h" 15 #include "ios/web/public/web_state/web_state_user_data.h"
13 16
14 class IOSChromeSyncedTabDelegate 17 class IOSChromeSyncedTabDelegate
15 : public browser_sync::SyncedTabDelegate, 18 : public sync_sessions::SyncedTabDelegate,
16 public web::WebStateUserData<IOSChromeSyncedTabDelegate> { 19 public web::WebStateUserData<IOSChromeSyncedTabDelegate> {
17 public: 20 public:
18 ~IOSChromeSyncedTabDelegate() override; 21 ~IOSChromeSyncedTabDelegate() override;
19 22
20 // SyncedTabDelegate: 23 // SyncedTabDelegate:
21 SessionID::id_type GetWindowId() const override; 24 SessionID::id_type GetWindowId() const override;
22 SessionID::id_type GetSessionId() const override; 25 SessionID::id_type GetSessionId() const override;
23 bool IsBeingDestroyed() const override; 26 bool IsBeingDestroyed() const override;
24 std::string GetExtensionAppId() const override; 27 std::string GetExtensionAppId() const override;
25 bool IsInitialBlankNavigation() const override; 28 bool IsInitialBlankNavigation() const override;
(...skipping 16 matching lines...) Expand all
42 private: 45 private:
43 explicit IOSChromeSyncedTabDelegate(web::WebState* web_state); 46 explicit IOSChromeSyncedTabDelegate(web::WebState* web_state);
44 friend class web::WebStateUserData<IOSChromeSyncedTabDelegate>; 47 friend class web::WebStateUserData<IOSChromeSyncedTabDelegate>;
45 48
46 web::WebState* web_state_; 49 web::WebState* web_state_;
47 int sync_session_id_; 50 int sync_session_id_;
48 51
49 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncedTabDelegate); 52 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncedTabDelegate);
50 }; 53 };
51 54
52 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 55 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNCED_TAB_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698