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

Side by Side Diff: chrome/browser/ui/browser_tab_restore_service_delegate.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: 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
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 #ifndef CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_
6 #define CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 content::WebContents* GetActiveWebContents() const override; 33 content::WebContents* GetActiveWebContents() const override;
34 bool IsTabPinned(int index) const override; 34 bool IsTabPinned(int index) const override;
35 content::WebContents* AddRestoredTab( 35 content::WebContents* AddRestoredTab(
36 const std::vector<sessions::SerializedNavigationEntry>& navigations, 36 const std::vector<sessions::SerializedNavigationEntry>& navigations,
37 int tab_index, 37 int tab_index,
38 int selected_navigation, 38 int selected_navigation,
39 const std::string& extension_app_id, 39 const std::string& extension_app_id,
40 bool select, 40 bool select,
41 bool pin, 41 bool pin,
42 bool from_last_session, 42 bool from_last_session,
43 content::SessionStorageNamespace* storage_namespace, 43 const sessions::TabClientData* storage_namespace,
44 const std::string& user_agent_override) override; 44 const std::string& user_agent_override) override;
45 content::WebContents* ReplaceRestoredTab( 45 content::WebContents* ReplaceRestoredTab(
46 const std::vector<sessions::SerializedNavigationEntry>& navigations, 46 const std::vector<sessions::SerializedNavigationEntry>& navigations,
47 int selected_navigation, 47 int selected_navigation,
48 bool from_last_session, 48 bool from_last_session,
49 const std::string& extension_app_id, 49 const std::string& extension_app_id,
50 content::SessionStorageNamespace* session_storage_namespace, 50 const sessions::TabClientData* tab_client_data,
51 const std::string& user_agent_override) override; 51 const std::string& user_agent_override) override;
52 void CloseTab() override; 52 void CloseTab() override;
53 53
54 // see Browser::Create 54 // see Browser::Create
55 static TabRestoreServiceDelegate* Create( 55 static TabRestoreServiceDelegate* Create(
56 Profile* profile, 56 Profile* profile,
57 chrome::HostDesktopType host_desktop_type, 57 chrome::HostDesktopType host_desktop_type,
58 const std::string& app_name); 58 const std::string& app_name);
59 59
60 // see browser::FindBrowserForWebContents 60 // see browser::FindBrowserForWebContents
61 static TabRestoreServiceDelegate* FindDelegateForWebContents( 61 static TabRestoreServiceDelegate* FindDelegateForWebContents(
62 const content::WebContents* contents); 62 const content::WebContents* contents);
63 63
64 // see chrome::FindBrowserWithID 64 // see chrome::FindBrowserWithID
65 // Returns the TabRestoreServiceDelegate of the Browser with |desired_id| if 65 // Returns the TabRestoreServiceDelegate of the Browser with |desired_id| if
66 // such a Browser exists and is on the desktop defined by |host_desktop_type|. 66 // such a Browser exists and is on the desktop defined by |host_desktop_type|.
67 static TabRestoreServiceDelegate* FindDelegateWithID( 67 static TabRestoreServiceDelegate* FindDelegateWithID(
68 SessionID::id_type desired_id, 68 SessionID::id_type desired_id,
69 chrome::HostDesktopType host_desktop_type); 69 chrome::HostDesktopType host_desktop_type);
70 70
71 private: 71 private:
72 Browser* browser_; 72 Browser* browser_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(BrowserTabRestoreServiceDelegate); 74 DISALLOW_COPY_AND_ASSIGN(BrowserTabRestoreServiceDelegate);
75 }; 75 };
76 76
77 #endif // CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ 77 #endif // CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/tab_restore_service_helper.cc ('k') | chrome/browser/ui/browser_tab_restore_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698