Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / components / sessions / content / content_tab_client_data.cc
blob2c614bf4a7fcc30f1a0db13dc2138c3b36510bad
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
3 // found in the LICENSE file.
5 #include "components/sessions/content/content_tab_client_data.h"
7 #include "content/public/browser/navigation_controller.h"
8 #include "content/public/browser/web_contents.h"
10 namespace sessions {
12 ContentTabClientData::ContentTabClientData(content::WebContents* web_contents)
13 : // TODO(ajwong): This does not correctly handle storage for isolated
14 // apps.
15 session_storage_namespace_(web_contents->GetController()
16 .GetDefaultSessionStorageNamespace()) {}
18 ContentTabClientData::ContentTabClientData() {}
20 ContentTabClientData::~ContentTabClientData() {}
22 scoped_ptr<TabClientData> ContentTabClientData::Clone() {
23 ContentTabClientData* clone = new ContentTabClientData();
24 clone->session_storage_namespace_ = session_storage_namespace_;
25 return make_scoped_ptr(clone);
28 } // namespace sessions