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

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

Issue 1309323004: Create a NavigationEntry for the initial blank page. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GetEntryCount, more tests Created 5 years, 2 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 (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_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 virtual SessionID::id_type GetWindowId() const = 0; 33 virtual SessionID::id_type GetWindowId() const = 0;
34 virtual SessionID::id_type GetSessionId() const = 0; 34 virtual SessionID::id_type GetSessionId() const = 0;
35 virtual bool IsBeingDestroyed() const = 0; 35 virtual bool IsBeingDestroyed() const = 0;
36 virtual Profile* profile() const = 0; 36 virtual Profile* profile() const = 0;
37 37
38 // Method derived from extensions TabHelper. 38 // Method derived from extensions TabHelper.
39 39
40 virtual std::string GetExtensionAppId() const = 0; 40 virtual std::string GetExtensionAppId() const = 0;
41 41
42 // Methods from NavigationController. 42 // Methods from NavigationController.
43 43 virtual bool IsInitialBlankNavigation() const = 0;
44 virtual int GetCurrentEntryIndex() const = 0; 44 virtual int GetCurrentEntryIndex() const = 0;
45 virtual int GetEntryCount() const = 0; 45 virtual int GetEntryCount() const = 0;
46 virtual int GetPendingEntryIndex() const = 0; 46 virtual int GetPendingEntryIndex() const = 0;
47 virtual content::NavigationEntry* GetPendingEntry() const = 0; 47 virtual content::NavigationEntry* GetPendingEntry() const = 0;
48 virtual content::NavigationEntry* GetEntryAtIndex(int i) const = 0; 48 virtual content::NavigationEntry* GetEntryAtIndex(int i) const = 0;
49 virtual content::NavigationEntry* GetActiveEntry() const = 0; 49 virtual content::NavigationEntry* GetActiveEntry() const = 0;
50 50
51 // The idea here is that GetEntryAtIndex may not always return the pending 51 // The idea here is that GetEntryAtIndex may not always return the pending
52 // entry when asked for the entry at the pending index. These convinience 52 // entry when asked for the entry at the pending index. These convinience
53 // methods will check for this case and then call the correct entry accessor. 53 // methods will check for this case and then call the correct entry accessor.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual const SyncedWindowDelegate* GetSyncedWindowDelegate() const; 87 virtual const SyncedWindowDelegate* GetSyncedWindowDelegate() const;
88 88
89 private: 89 private:
90 // A getter for accessing the associated SyncedWindowDelegate. 90 // A getter for accessing the associated SyncedWindowDelegate.
91 scoped_ptr<SyncedWindowDelegatesGetter> synced_window_getter_; 91 scoped_ptr<SyncedWindowDelegatesGetter> synced_window_getter_;
92 }; 92 };
93 93
94 } // namespace browser_sync 94 } // namespace browser_sync
95 95
96 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ 96 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/sync/glue/synced_tab_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698