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

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

Issue 2200993004: Make TabRestoreService::Entry noncopyable and fix up surrounding code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tab-test-cleanup
Patch Set: Get session ID from entries, take tabs' active status directly instead of an index Created 4 years, 4 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 #include "components/sessions/content/content_platform_specific_tab_data.h" 5 #include "components/sessions/content/content_platform_specific_tab_data.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "content/public/browser/navigation_controller.h" 8 #include "content/public/browser/navigation_controller.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
11 namespace sessions { 11 namespace sessions {
12 12
13 ContentPlatformSpecificTabData::ContentPlatformSpecificTabData( 13 ContentPlatformSpecificTabData::ContentPlatformSpecificTabData(
14 content::WebContents* web_contents) 14 content::WebContents* web_contents)
15 : // TODO(ajwong): This does not correctly handle storage for isolated 15 : // TODO(ajwong): This does not correctly handle storage for isolated
16 // apps. 16 // apps.
17 session_storage_namespace_(web_contents->GetController() 17 session_storage_namespace_(web_contents->GetController()
18 .GetDefaultSessionStorageNamespace()) {} 18 .GetDefaultSessionStorageNamespace()) {}
19 19
20 ContentPlatformSpecificTabData::ContentPlatformSpecificTabData() {} 20 ContentPlatformSpecificTabData::ContentPlatformSpecificTabData() {}
21 21
22 ContentPlatformSpecificTabData::~ContentPlatformSpecificTabData() {} 22 ContentPlatformSpecificTabData::~ContentPlatformSpecificTabData() {}
23 23
24 std::unique_ptr<PlatformSpecificTabData>
25 ContentPlatformSpecificTabData::Clone() {
26 ContentPlatformSpecificTabData* clone = new ContentPlatformSpecificTabData();
27 clone->session_storage_namespace_ = session_storage_namespace_;
28 return base::WrapUnique(clone);
29 }
30
31 } // namespace sessions 24 } // namespace sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698