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

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

Issue 10827168: Fix user agent override restore pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing Created 8 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual content::WebContents* GetActiveWebContents() const = 0; 44 virtual content::WebContents* GetActiveWebContents() const = 0;
45 virtual bool IsTabPinned(int index) const = 0; 45 virtual bool IsTabPinned(int index) const = 0;
46 virtual content::WebContents* AddRestoredTab( 46 virtual content::WebContents* AddRestoredTab(
47 const std::vector<TabNavigation>& navigations, 47 const std::vector<TabNavigation>& navigations,
48 int tab_index, 48 int tab_index,
49 int selected_navigation, 49 int selected_navigation,
50 const std::string& extension_app_id, 50 const std::string& extension_app_id,
51 bool select, 51 bool select,
52 bool pin, 52 bool pin,
53 bool from_last_session, 53 bool from_last_session,
54 content::SessionStorageNamespace* storage_namespace) = 0; 54 content::SessionStorageNamespace* storage_namespace,
55 const std::string& user_agent_override) = 0;
55 virtual void ReplaceRestoredTab( 56 virtual void ReplaceRestoredTab(
56 const std::vector<TabNavigation>& navigations, 57 const std::vector<TabNavigation>& navigations,
57 int selected_navigation, 58 int selected_navigation,
58 bool from_last_session, 59 bool from_last_session,
59 const std::string& extension_app_id, 60 const std::string& extension_app_id,
60 content::SessionStorageNamespace* session_storage_namespace) = 0; 61 content::SessionStorageNamespace* session_storage_namespace,
62 const std::string& user_agent_override) = 0;
61 virtual void CloseTab() = 0; 63 virtual void CloseTab() = 0;
62 64
63 // see Browser::Create 65 // see Browser::Create
64 static TabRestoreServiceDelegate* Create(Profile* profile, 66 static TabRestoreServiceDelegate* Create(Profile* profile,
65 const std::string& app_name); 67 const std::string& app_name);
66 68
67 // see browser::FindBrowserForController 69 // see browser::FindBrowserForController
68 static TabRestoreServiceDelegate* FindDelegateForController( 70 static TabRestoreServiceDelegate* FindDelegateForController(
69 const content::NavigationController* controller, 71 const content::NavigationController* controller,
70 int* index); 72 int* index);
71 73
72 // see browser::FindBrowserWithID 74 // see browser::FindBrowserWithID
73 static TabRestoreServiceDelegate* FindDelegateWithID( 75 static TabRestoreServiceDelegate* FindDelegateWithID(
74 SessionID::id_type desired_id); 76 SessionID::id_type desired_id);
75 77
76 protected: 78 protected:
77 virtual ~TabRestoreServiceDelegate() {} 79 virtual ~TabRestoreServiceDelegate() {}
78 }; 80 };
79 81
80 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ 82 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698