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

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

Issue 2868983003: Ensure History > Recent Tabs restore preserves window disposition. (Closed)
Patch Set: Remove NOTREACHED(). Created 3 years, 4 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 | « no previous file | chrome/browser/sessions/chrome_tab_restore_service_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/sessions/core/tab_restore_service_client.h" 9 #include "components/sessions/core/tab_restore_service_client.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 // ChromeTabRestoreServiceClient provides an implementation of 13 // ChromeTabRestoreServiceClient provides an implementation of
14 // TabRestoreServiceClient that depends on chrome/. 14 // TabRestoreServiceClient that depends on chrome/.
15 class ChromeTabRestoreServiceClient : public sessions::TabRestoreServiceClient { 15 class ChromeTabRestoreServiceClient : public sessions::TabRestoreServiceClient {
16 public: 16 public:
17 explicit ChromeTabRestoreServiceClient(Profile* profile); 17 explicit ChromeTabRestoreServiceClient(Profile* profile);
18 ~ChromeTabRestoreServiceClient() override; 18 ~ChromeTabRestoreServiceClient() override;
19 19
20 private: 20 private:
21 // TabRestoreServiceClient: 21 // TabRestoreServiceClient:
22 sessions::LiveTabContext* CreateLiveTabContext( 22 sessions::LiveTabContext* CreateLiveTabContext(
23 const std::string& app_name) override; 23 const std::string& app_name,
24 const gfx::Rect& bounds,
25 ui::WindowShowState show_state,
26 const std::string& workspace) override;
24 sessions::LiveTabContext* FindLiveTabContextForTab( 27 sessions::LiveTabContext* FindLiveTabContextForTab(
25 const sessions::LiveTab* tab) override; 28 const sessions::LiveTab* tab) override;
26 sessions::LiveTabContext* FindLiveTabContextWithID( 29 sessions::LiveTabContext* FindLiveTabContextWithID(
27 SessionID::id_type desired_id) override; 30 SessionID::id_type desired_id) override;
28 bool ShouldTrackURLForRestore(const GURL& url) override; 31 bool ShouldTrackURLForRestore(const GURL& url) override;
29 std::string GetExtensionAppIDForTab(sessions::LiveTab* tab) override; 32 std::string GetExtensionAppIDForTab(sessions::LiveTab* tab) override;
30 base::FilePath GetPathToSaveTo() override; 33 base::FilePath GetPathToSaveTo() override;
31 GURL GetNewTabURL() override; 34 GURL GetNewTabURL() override;
32 bool HasLastSession() override; 35 bool HasLastSession() override;
33 void GetLastSession(const sessions::GetLastSessionCallback& callback, 36 void GetLastSession(const sessions::GetLastSessionCallback& callback,
34 base::CancelableTaskTracker* tracker) override; 37 base::CancelableTaskTracker* tracker) override;
35 void OnTabRestored(const GURL& url) override; 38 void OnTabRestored(const GURL& url) override;
36 39
37 Profile* profile_; 40 Profile* profile_;
38 41
39 DISALLOW_COPY_AND_ASSIGN(ChromeTabRestoreServiceClient); 42 DISALLOW_COPY_AND_ASSIGN(ChromeTabRestoreServiceClient);
40 }; 43 };
41 44
42 #endif // CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_ 45 #endif // CHROME_BROWSER_SESSIONS_CHROME_TAB_RESTORE_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sessions/chrome_tab_restore_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698