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

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

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
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 #include "components/sessions/content/content_tab_client_data.h"
6
7 #include "content/public/browser/navigation_controller.h"
8 #include "content/public/browser/web_contents.h"
9
10 namespace sessions {
11
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()) {}
17
18 ContentTabClientData::ContentTabClientData() {}
19
20 ContentTabClientData::~ContentTabClientData() {}
21
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);
26 }
27
28 } // namespace sessions
OLDNEW
« no previous file with comments | « components/sessions/content/content_tab_client_data.h ('k') | components/sessions/core/tab_restore_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698