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

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

Issue 15055003: Do not submit: high level overview patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build. Created 7 years, 7 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 | Annotate | Revision Log
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_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_
6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual bool IsTabPinned(int index) const = 0; 50 virtual bool IsTabPinned(int index) const = 0;
51 virtual content::WebContents* AddRestoredTab( 51 virtual content::WebContents* AddRestoredTab(
52 const std::vector<sessions::SerializedNavigationEntry>& navigations, 52 const std::vector<sessions::SerializedNavigationEntry>& navigations,
53 int tab_index, 53 int tab_index,
54 int selected_navigation, 54 int selected_navigation,
55 const std::string& extension_app_id, 55 const std::string& extension_app_id,
56 bool select, 56 bool select,
57 bool pin, 57 bool pin,
58 bool from_last_session, 58 bool from_last_session,
59 content::SessionStorageNamespace* storage_namespace, 59 content::SessionStorageNamespace* storage_namespace,
60 const std::string& user_agent_override) = 0; 60 const std::string& user_agent_override,
61 const int64& sync_id) = 0;
61 virtual void ReplaceRestoredTab( 62 virtual void ReplaceRestoredTab(
62 const std::vector<sessions::SerializedNavigationEntry>& navigations, 63 const std::vector<sessions::SerializedNavigationEntry>& navigations,
63 int selected_navigation, 64 int selected_navigation,
64 bool from_last_session, 65 bool from_last_session,
65 const std::string& extension_app_id, 66 const std::string& extension_app_id,
66 content::SessionStorageNamespace* session_storage_namespace, 67 content::SessionStorageNamespace* session_storage_namespace,
67 const std::string& user_agent_override) = 0; 68 const std::string& user_agent_override,
69 const int64& sync_id) = 0;
68 virtual void CloseTab() = 0; 70 virtual void CloseTab() = 0;
69 71
70 // see Browser::Create 72 // see Browser::Create
71 static TabRestoreServiceDelegate* Create( 73 static TabRestoreServiceDelegate* Create(
72 Profile* profile, 74 Profile* profile,
73 chrome::HostDesktopType host_desktop_type, 75 chrome::HostDesktopType host_desktop_type,
74 const std::string& app_name); 76 const std::string& app_name);
75 77
76 // see browser::FindBrowserForWebContents 78 // see browser::FindBrowserForWebContents
77 static TabRestoreServiceDelegate* FindDelegateForWebContents( 79 static TabRestoreServiceDelegate* FindDelegateForWebContents(
78 const content::WebContents* contents); 80 const content::WebContents* contents);
79 81
80 // see chrome::FindBrowserWithID 82 // see chrome::FindBrowserWithID
81 // Returns the TabRestoreServiceDelegate of the Browser with |desired_id| if 83 // Returns the TabRestoreServiceDelegate of the Browser with |desired_id| if
82 // such a Browser exists and is on the desktop defined by |host_desktop_type|. 84 // such a Browser exists and is on the desktop defined by |host_desktop_type|.
83 static TabRestoreServiceDelegate* FindDelegateWithID( 85 static TabRestoreServiceDelegate* FindDelegateWithID(
84 SessionID::id_type desired_id, 86 SessionID::id_type desired_id,
85 chrome::HostDesktopType host_desktop_type); 87 chrome::HostDesktopType host_desktop_type);
86 88
87 protected: 89 protected:
88 virtual ~TabRestoreServiceDelegate() {} 90 virtual ~TabRestoreServiceDelegate() {}
89 }; 91 };
90 92
91 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ 93 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698