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

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

Issue 1912843002: Convert //components/sessions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | components/sessions/content/content_live_tab.cc » ('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 (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 // it has not already been created. 34 // it has not already been created.
35 static ContentLiveTab* GetForWebContents(content::WebContents* web_contents); 35 static ContentLiveTab* GetForWebContents(content::WebContents* web_contents);
36 36
37 // LiveTab: 37 // LiveTab:
38 bool IsInitialBlankNavigation() override; 38 bool IsInitialBlankNavigation() override;
39 int GetCurrentEntryIndex() override; 39 int GetCurrentEntryIndex() override;
40 int GetPendingEntryIndex() override; 40 int GetPendingEntryIndex() override;
41 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override; 41 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override;
42 sessions::SerializedNavigationEntry GetPendingEntry() override; 42 sessions::SerializedNavigationEntry GetPendingEntry() override;
43 int GetEntryCount() override; 43 int GetEntryCount() override;
44 scoped_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData() override; 44 std::unique_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData()
45 override;
45 void LoadIfNecessary() override; 46 void LoadIfNecessary() override;
46 const std::string& GetUserAgentOverride() const override; 47 const std::string& GetUserAgentOverride() const override;
47 48
48 content::WebContents* web_contents() { return web_contents_; } 49 content::WebContents* web_contents() { return web_contents_; }
49 const content::WebContents* web_contents() const { return web_contents_; } 50 const content::WebContents* web_contents() const { return web_contents_; }
50 51
51 private: 52 private:
52 friend class base::SupportsUserData; 53 friend class base::SupportsUserData;
53 friend class ::PersistentTabRestoreServiceTest; 54 friend class ::PersistentTabRestoreServiceTest;
54 55
55 explicit ContentLiveTab(content::WebContents* contents); 56 explicit ContentLiveTab(content::WebContents* contents);
56 57
57 content::NavigationController& navigation_controller() { 58 content::NavigationController& navigation_controller() {
58 return web_contents_->GetController(); 59 return web_contents_->GetController();
59 } 60 }
60 61
61 content::WebContents* web_contents_; 62 content::WebContents* web_contents_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(ContentLiveTab); 64 DISALLOW_COPY_AND_ASSIGN(ContentLiveTab);
64 }; 65 };
65 66
66 } // namespace sessions 67 } // namespace sessions
67 68
68 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ 69 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_
OLDNEW
« no previous file with comments | « no previous file | components/sessions/content/content_live_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698