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

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: Hopefully fix Windows 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
(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
22 content::SessionStorageNamespace* session_storage_namespace() const {
23 return session_storage_namespace_.get();
24 }
25
26 private:
27 friend class base::RefCountedThreadSafe<ContentTabClientData>;
28 ~ContentTabClientData() override;
29
30 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_;
31 };
32
33 } // namespace sessions
34
35 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_CLIENT_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698