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

Side by Side Diff: chrome/browser/sessions/chrome_tab_restore_service_client.h

Issue 1319473014: Introduce TabRestoreServiceClient and //chrome implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fixes 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 CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_
7
8 #include "base/basictypes.h"
9 #include "components/sessions/core/tab_restore_service_client.h"
10
11 class Profile;
12
13 // ChromeTabRestoreServiceClient provides an implementation of
14 // TabRestoreServiceClient that depends on chrome/.
15 class ChromeTabRestoreServiceClient : public sessions::TabRestoreServiceClient {
16 public:
17 explicit ChromeTabRestoreServiceClient(Profile* profile);
18 ~ChromeTabRestoreServiceClient() override;
19
20 private:
21 // TabRestoreServiceClient:
22 int GetMaxPersistNavigationCount() override;
23 bool HasLastSession() override;
24 void GetLastSession(const sessions::GotLastSessionCallback& callback,
25 base::CancelableTaskTracker* tracker) override;
26
27 Profile* profile_;
28
29 DISALLOW_COPY_AND_ASSIGN(ChromeTabRestoreServiceClient);
30 };
31
32 #endif // CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698