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

Side by Side Diff: chrome/browser/ui/sync/synced_tab_delegate_android.h

Issue 15055003: Do not submit: high level overview patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build. Created 7 years, 7 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_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_SYNC_SYNCED_TAB_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_SYNC_SYNCED_TAB_DELEGATE_ANDROID_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/sessions/session_id.h" 9 #include "chrome/browser/sessions/session_id.h"
10 #include "chrome/browser/sync/glue/synced_tab_delegate.h" 10 #include "chrome/browser/sync/glue/synced_tab_delegate.h"
11 #include "content/public/browser/web_contents_user_data.h" 11 #include "content/public/browser/web_contents_user_data.h"
12 12
13 namespace content { 13 namespace content { class WebContents; }
14 class WebContents;
15 }
16 14
17 class TabContentsSyncedTabDelegate 15 class TabAndroid;
18 : public browser_sync::SyncedTabDelegate, 16
19 public content::WebContentsUserData<TabContentsSyncedTabDelegate> { 17 class SyncedTabDelegateAndroid : public browser_sync::SyncedTabDelegate {
20 public: 18 public:
21 virtual ~TabContentsSyncedTabDelegate(); 19 virtual ~SyncedTabDelegateAndroid();
22 20
23 // Methods from SyncedTabDelegate. 21 // Methods from SyncedTabDelegate.
24 virtual SessionID::id_type GetWindowId() const OVERRIDE; 22 virtual const SessionID& GetWindowId() const OVERRIDE;
25 virtual SessionID::id_type GetSessionId() const OVERRIDE; 23 virtual const SessionID& GetSessionId() const OVERRIDE;
26 virtual bool IsBeingDestroyed() const OVERRIDE; 24 virtual bool IsBeingDestroyed() const OVERRIDE;
27 virtual Profile* profile() const OVERRIDE; 25 virtual Profile* profile() const OVERRIDE;
28 virtual std::string GetExtensionAppId() const OVERRIDE; 26 virtual std::string GetExtensionAppId() const OVERRIDE;
29 virtual int GetCurrentEntryIndex() const OVERRIDE; 27 virtual int GetCurrentEntryIndex() const OVERRIDE;
30 virtual int GetEntryCount() const OVERRIDE; 28 virtual int GetEntryCount() const OVERRIDE;
31 virtual int GetPendingEntryIndex() const OVERRIDE; 29 virtual int GetPendingEntryIndex() const OVERRIDE;
32 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; 30 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE;
33 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; 31 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE;
34 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; 32 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE;
35 virtual bool IsPinned() const OVERRIDE; 33 virtual bool IsPinned() const OVERRIDE;
34 virtual int64 GetSyncSessionId() const OVERRIDE;
35 virtual void SetSyncSessionId(const int64 sync_id) OVERRIDE;
36 virtual void SetWebContents(content::WebContents* web_contents);
37 virtual bool IsTabInMemory() const OVERRIDE;
38 explicit SyncedTabDelegateAndroid(TabAndroid* owning_tab_);
36 39
37 private: 40 private:
38 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents); 41 content::WebContents* web_contents_;
39 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>; 42 TabAndroid* tab_android_;
40 43
41 content::WebContents* web_contents_; 44 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid);
42
43 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate);
44 }; 45 };
45 46
46 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 47 #endif // CHROME_BROWSER_UI_SYNC_SYNCED_TAB_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698