Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / components / sessions / content / content_tab_client_data.h
blob6942786fe706bf2b63561391ed5280f359e81d1c
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 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
8 #include "base/memory/ref_counted.h"
9 #include "components/sessions/core/tab_restore_service_client.h"
10 #include "components/sessions/sessions_export.h"
11 #include "content/public/browser/session_storage_namespace.h"
13 namespace content {
14 class WebContents;
17 namespace sessions {
19 // A //content-specific subclass of TabClientData that is used to associate
20 // TabRestoreService::Tab instances with the content::SessionStorageNamespace
21 // of the WebContents from which they were created.
22 class SESSIONS_EXPORT ContentTabClientData : public TabClientData {
23 public:
24 explicit ContentTabClientData(content::WebContents* web_contents);
25 ContentTabClientData();
26 ~ContentTabClientData() override;
28 content::SessionStorageNamespace* session_storage_namespace() const {
29 return session_storage_namespace_.get();
32 private:
33 // TabClientData:
34 scoped_ptr<TabClientData> Clone() override;
36 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_;
39 } // namespace sessions
41 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_