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

Side by Side Diff: components/sessions/core/in_memory_tab_restore_service.cc

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "components/sessions/core/in_memory_tab_restore_service.h" 5 #include "components/sessions/core/in_memory_tab_restore_service.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 10
11 using sessions::LiveTab; 11 namespace sessions {
12 12
13 InMemoryTabRestoreService::InMemoryTabRestoreService( 13 InMemoryTabRestoreService::InMemoryTabRestoreService(
14 scoped_ptr<sessions::TabRestoreServiceClient> client, 14 scoped_ptr<TabRestoreServiceClient> client,
15 TabRestoreService::TimeFactory* time_factory) 15 TabRestoreService::TimeFactory* time_factory)
16 : client_(client.Pass()), 16 : client_(client.Pass()),
17 helper_(this, NULL, client_.get(), time_factory) {} 17 helper_(this, NULL, client_.get(), time_factory) {}
18 18
19 InMemoryTabRestoreService::~InMemoryTabRestoreService() {} 19 InMemoryTabRestoreService::~InMemoryTabRestoreService() {}
20 20
21 void InMemoryTabRestoreService::AddObserver( 21 void InMemoryTabRestoreService::AddObserver(
22 TabRestoreServiceObserver* observer) { 22 TabRestoreServiceObserver* observer) {
23 helper_.AddObserver(observer); 23 helper_.AddObserver(observer);
24 } 24 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // See comment above. 79 // See comment above.
80 return true; 80 return true;
81 } 81 }
82 82
83 void InMemoryTabRestoreService::DeleteLastSession() { 83 void InMemoryTabRestoreService::DeleteLastSession() {
84 // See comment above. 84 // See comment above.
85 } 85 }
86 86
87 void InMemoryTabRestoreService::Shutdown() { 87 void InMemoryTabRestoreService::Shutdown() {
88 } 88 }
89
90 } // namespace
OLDNEW
« no previous file with comments | « components/sessions/core/in_memory_tab_restore_service.h ('k') | components/sessions/core/live_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698