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

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

Issue 2727663004: Use TabLoader in TabRestoreService. (Closed)
Patch Set: Fix review notes: comments, namings etc. 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
« no previous file with comments | « components/sessions/content/content_live_tab.h ('k') | components/sessions/core/live_tab.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "components/sessions/content/content_live_tab.h" 5 #include "components/sessions/content/content_live_tab.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/sessions/content/content_platform_specific_tab_data.h" 8 #include "components/sessions/content/content_platform_specific_tab_data.h"
9 9
10 namespace { 10 namespace {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 int ContentLiveTab::GetEntryCount() { 55 int ContentLiveTab::GetEntryCount() {
56 return navigation_controller().GetEntryCount(); 56 return navigation_controller().GetEntryCount();
57 } 57 }
58 58
59 std::unique_ptr<sessions::PlatformSpecificTabData> 59 std::unique_ptr<sessions::PlatformSpecificTabData>
60 ContentLiveTab::GetPlatformSpecificTabData() { 60 ContentLiveTab::GetPlatformSpecificTabData() {
61 return base::MakeUnique<sessions::ContentPlatformSpecificTabData>( 61 return base::MakeUnique<sessions::ContentPlatformSpecificTabData>(
62 web_contents()); 62 web_contents());
63 } 63 }
64 64
65 void ContentLiveTab::LoadIfNecessary() {
66 navigation_controller().LoadIfNecessary();
67 }
68
69 const std::string& ContentLiveTab::GetUserAgentOverride() const { 65 const std::string& ContentLiveTab::GetUserAgentOverride() const {
70 return web_contents()->GetUserAgentOverride(); 66 return web_contents()->GetUserAgentOverride();
71 } 67 }
72 68
73 } // namespace sessions 69 } // namespace sessions
OLDNEW
« no previous file with comments | « components/sessions/content/content_live_tab.h ('k') | components/sessions/core/live_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698