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

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

Issue 1343833002: Abstract content::SessionStorageNamespace from core TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension_tab_helper
Patch Set: Response to review 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
« no previous file with comments | « components/sessions/BUILD.gn ('k') | components/sessions/content/content_tab_client_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
7
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"
12
13 namespace sessions {
14
15 // A //content-specific subclass of TabClientData that is used to associate
16 // TabRestoreService::Tab instances with the content::SessionStorageNamespace
17 // of the WebContents from which they were created.
18 class SESSIONS_EXPORT ContentTabClientData : public TabClientData {
19 public:
20 explicit ContentTabClientData(content::WebContents* web_contents);
21 ContentTabClientData();
22 ~ContentTabClientData() override;
23
24 content::SessionStorageNamespace* session_storage_namespace() const {
25 return session_storage_namespace_.get();
26 }
27
28 private:
29 // TabClientData:
30 scoped_ptr<TabClientData> Clone() override;
31
32 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_;
33 };
34
35 } // namespace sessions
36
37 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
OLDNEW
« no previous file with comments | « components/sessions/BUILD.gn ('k') | components/sessions/content/content_tab_client_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698