NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / ui / sync / tab_contents_synced_tab_delegate.h
blob5525f1682b368116a3de267f9ee95450fa7862dc
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_
6 #define CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/sessions/session_id.h"
10 #include "chrome/browser/sync/glue/synced_tab_delegate.h"
11 #include "content/public/browser/web_contents_user_data.h"
13 namespace content {
14 class WebContents;
17 class TabContentsSyncedTabDelegate
18 : public browser_sync::SyncedTabDelegate,
19 public content::WebContentsUserData<TabContentsSyncedTabDelegate> {
20 public:
21 virtual ~TabContentsSyncedTabDelegate();
23 // Methods from SyncedTabDelegate.
24 virtual SessionID::id_type GetWindowId() const OVERRIDE;
25 virtual SessionID::id_type GetSessionId() const OVERRIDE;
26 virtual bool IsBeingDestroyed() const OVERRIDE;
27 virtual Profile* profile() const OVERRIDE;
28 virtual std::string GetExtensionAppId() const OVERRIDE;
29 virtual int GetCurrentEntryIndex() const OVERRIDE;
30 virtual int GetEntryCount() const OVERRIDE;
31 virtual int GetPendingEntryIndex() const OVERRIDE;
32 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE;
33 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE;
34 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE;
35 virtual bool ProfileIsManaged() const OVERRIDE;
36 virtual const std::vector<const content::NavigationEntry*>*
37 GetBlockedNavigations() const OVERRIDE;
38 virtual bool IsPinned() const OVERRIDE;
39 virtual bool HasWebContents() const OVERRIDE;
40 virtual content::WebContents* GetWebContents() const OVERRIDE;
41 virtual int GetSyncId() const OVERRIDE;
42 virtual void SetSyncId(int sync_id) OVERRIDE;
44 private:
45 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents);
46 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>;
48 content::WebContents* web_contents_;
49 int sync_session_id_;
51 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate);
54 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_