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

Side by Side Diff: components/sessions/ios/ios_live_tab.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 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 COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ 5 #ifndef COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_
6 #define COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ 6 #define COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "components/sessions/core/live_tab.h" 10 #include "components/sessions/core/live_tab.h"
(...skipping 12 matching lines...) Expand all
23 class SESSIONS_EXPORT IOSLiveTab : public LiveTab, 23 class SESSIONS_EXPORT IOSLiveTab : public LiveTab,
24 public base::SupportsUserData::Data { 24 public base::SupportsUserData::Data {
25 public: 25 public:
26 ~IOSLiveTab() override; 26 ~IOSLiveTab() override;
27 27
28 // Returns the IOSLiveTab associated with |web_state|, creating it if 28 // Returns the IOSLiveTab associated with |web_state|, creating it if
29 // it has not already been created. 29 // it has not already been created.
30 static IOSLiveTab* GetForWebState(web::WebState* web_state); 30 static IOSLiveTab* GetForWebState(web::WebState* web_state);
31 31
32 // LiveTab: 32 // LiveTab:
33 bool IsInitialNavigation() override; 33 bool IsInitialBlankNavigation() override;
34 int GetCurrentEntryIndex() override; 34 int GetCurrentEntryIndex() override;
35 int GetPendingEntryIndex() override; 35 int GetPendingEntryIndex() override;
36 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override; 36 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override;
37 sessions::SerializedNavigationEntry GetPendingEntry() override; 37 sessions::SerializedNavigationEntry GetPendingEntry() override;
38 int GetEntryCount() override; 38 int GetEntryCount() override;
39 void LoadIfNecessary() override; 39 void LoadIfNecessary() override;
40 const std::string& GetUserAgentOverride() const override; 40 const std::string& GetUserAgentOverride() const override;
41 41
42 web::WebState* web_state() { return web_state_; } 42 web::WebState* web_state() { return web_state_; }
43 const web::WebState* web_state() const { return web_state_; } 43 const web::WebState* web_state() const { return web_state_; }
(...skipping 11 matching lines...) Expand all
55 55
56 // Needed to return an empty string in GetUserAgentOverride(). 56 // Needed to return an empty string in GetUserAgentOverride().
57 static std::string user_agent_override_; 57 static std::string user_agent_override_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(IOSLiveTab); 59 DISALLOW_COPY_AND_ASSIGN(IOSLiveTab);
60 }; 60 };
61 61
62 } // namespace sessions 62 } // namespace sessions
63 63
64 #endif // COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ 64 #endif // COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_
OLDNEW
« no previous file with comments | « components/sessions/core/tab_restore_service_helper.cc ('k') | components/sessions/ios/ios_live_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698