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

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

Issue 1350653004: [sessions] Properly namespace recently-componentized TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac Created 5 years, 3 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 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_ 5 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_ 6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "components/sessions/core/tab_restore_service_client.h" 9 #include "components/sessions/core/tab_restore_service_client.h"
10 #include "components/sessions/sessions_export.h" 10 #include "components/sessions/sessions_export.h"
11 #include "content/public/browser/session_storage_namespace.h" 11 #include "content/public/browser/session_storage_namespace.h"
12 12
13 namespace content {
14 class WebContents;
15 }
16
13 namespace sessions { 17 namespace sessions {
14 18
15 // A //content-specific subclass of TabClientData that is used to associate 19 // A //content-specific subclass of TabClientData that is used to associate
16 // TabRestoreService::Tab instances with the content::SessionStorageNamespace 20 // TabRestoreService::Tab instances with the content::SessionStorageNamespace
17 // of the WebContents from which they were created. 21 // of the WebContents from which they were created.
18 class SESSIONS_EXPORT ContentTabClientData : public TabClientData { 22 class SESSIONS_EXPORT ContentTabClientData : public TabClientData {
19 public: 23 public:
20 explicit ContentTabClientData(content::WebContents* web_contents); 24 explicit ContentTabClientData(content::WebContents* web_contents);
21 ContentTabClientData(); 25 ContentTabClientData();
22 ~ContentTabClientData() override; 26 ~ContentTabClientData() override;
23 27
24 content::SessionStorageNamespace* session_storage_namespace() const { 28 content::SessionStorageNamespace* session_storage_namespace() const {
25 return session_storage_namespace_.get(); 29 return session_storage_namespace_.get();
26 } 30 }
27 31
28 private: 32 private:
29 // TabClientData: 33 // TabClientData:
30 scoped_ptr<TabClientData> Clone() override; 34 scoped_ptr<TabClientData> Clone() override;
31 35
32 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_; 36 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_;
33 }; 37 };
34 38
35 } // namespace sessions 39 } // namespace sessions
36 40
37 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_ 41 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
OLDNEW
« no previous file with comments | « components/sessions/base_session_service_commands.h ('k') | components/sessions/core/in_memory_tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698