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

Side by Side Diff: chrome/browser/sync/glue/synced_window_delegate_android.h

Issue 10701030: Refactor SyncedWindowDelegateAndroid into TabModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made some changes from a downstream review Created 8 years, 5 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
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/sessions/session_id.h"
11 #include "chrome/browser/sync/glue/synced_window_delegate.h"
12
13 class TabModelAndroid;
14
15 namespace browser_sync {
16
17 class SyncedTabDelegate;
18
19 class SyncedWindowDelegateAndroid : public browser_sync::SyncedWindowDelegate {
20 public:
21 explicit SyncedWindowDelegateAndroid(TabModelAndroid* tab_model);
22 virtual ~SyncedWindowDelegateAndroid();
23
24 virtual bool HasWindow() const OVERRIDE;
25 virtual SessionID::id_type GetSessionID() const OVERRIDE;
26 virtual int GetTabCount() const OVERRIDE;
27 virtual int GetActiveIndex() const OVERRIDE;
28 virtual bool IsApp() const OVERRIDE;
29 virtual bool IsTypeTabbed() const OVERRIDE;
30 virtual bool IsTypePopup() const OVERRIDE;
31 virtual bool IsTabPinned(const SyncedTabDelegate* tab) const OVERRIDE;
32 virtual SyncedTabDelegate* GetTabAt(int index) const OVERRIDE;
33 virtual SessionID::id_type GetTabIdAt(int index) const OVERRIDE;
34 virtual bool AreAllTabsLoaded() const OVERRIDE;
35
36 private:
37 TabModelAndroid* tab_model_;
38
39 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegateAndroid);
40 }
41
42 } // namespace browser_sync
43
44 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698