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

Side by Side Diff: components/sessions/content/content_live_tab.h

Issue 2727663004: Use TabLoader in TabRestoreService. (Closed)
Patch Set: Created 3 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTENT_CONTENT_LIVE_TAB_H_ 5 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_
6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ 6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "components/sessions/content/content_serialized_navigation_builder.h" 10 #include "components/sessions/content/content_serialized_navigation_builder.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // LiveTab: 35 // LiveTab:
36 bool IsInitialBlankNavigation() override; 36 bool IsInitialBlankNavigation() override;
37 int GetCurrentEntryIndex() override; 37 int GetCurrentEntryIndex() override;
38 int GetPendingEntryIndex() override; 38 int GetPendingEntryIndex() override;
39 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override; 39 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override;
40 sessions::SerializedNavigationEntry GetPendingEntry() override; 40 sessions::SerializedNavigationEntry GetPendingEntry() override;
41 int GetEntryCount() override; 41 int GetEntryCount() override;
42 std::unique_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData() 42 std::unique_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData()
43 override; 43 override;
44 void LoadIfNecessary() override;
45 const std::string& GetUserAgentOverride() const override; 44 const std::string& GetUserAgentOverride() const override;
46 45
47 content::WebContents* web_contents() { return web_contents_; } 46 content::WebContents* web_contents() { return web_contents_; }
48 const content::WebContents* web_contents() const { return web_contents_; } 47 const content::WebContents* web_contents() const { return web_contents_; }
49 48
50 private: 49 private:
51 friend class base::SupportsUserData; 50 friend class base::SupportsUserData;
52 friend class ::PersistentTabRestoreServiceTest; 51 friend class ::PersistentTabRestoreServiceTest;
53 52
54 explicit ContentLiveTab(content::WebContents* contents); 53 explicit ContentLiveTab(content::WebContents* contents);
55 54
56 content::NavigationController& navigation_controller() { 55 content::NavigationController& navigation_controller() {
57 return web_contents_->GetController(); 56 return web_contents_->GetController();
58 } 57 }
59 58
60 content::WebContents* web_contents_; 59 content::WebContents* web_contents_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(ContentLiveTab); 61 DISALLOW_COPY_AND_ASSIGN(ContentLiveTab);
63 }; 62 };
64 63
65 } // namespace sessions 64 } // namespace sessions
66 65
67 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ 66 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698