| OLD | NEW | 
|---|
| 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 | 
| OLD | NEW | 
|---|