OLD | NEW |
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_SESSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 virtual void Observe(int type, | 214 virtual void Observe(int type, |
215 const content::NotificationSource& source, | 215 const content::NotificationSource& source, |
216 const content::NotificationDetails& details) OVERRIDE; | 216 const content::NotificationDetails& details) OVERRIDE; |
217 | 217 |
218 // Sets the application extension id of the specified tab. | 218 // Sets the application extension id of the specified tab. |
219 void SetTabExtensionAppID(const SessionID& window_id, | 219 void SetTabExtensionAppID(const SessionID& window_id, |
220 const SessionID& tab_id, | 220 const SessionID& tab_id, |
221 const std::string& extension_app_id); | 221 const std::string& extension_app_id); |
222 | 222 |
| 223 // Sets the user agent override of the specified tab. |
| 224 void SetTabUserAgentOverride(const SessionID& window_id, |
| 225 const SessionID& tab_id, |
| 226 const std::string& user_agent_override); |
| 227 |
223 // Methods to create the various commands. It is up to the caller to delete | 228 // Methods to create the various commands. It is up to the caller to delete |
224 // the returned the SessionCommand* object. | 229 // the returned the SessionCommand* object. |
225 SessionCommand* CreateSetSelectedTabInWindow(const SessionID& window_id, | 230 SessionCommand* CreateSetSelectedTabInWindow(const SessionID& window_id, |
226 int index); | 231 int index); |
227 | 232 |
228 SessionCommand* CreateSetTabWindowCommand(const SessionID& window_id, | 233 SessionCommand* CreateSetTabWindowCommand(const SessionID& window_id, |
229 const SessionID& tab_id); | 234 const SessionID& tab_id); |
230 | 235 |
231 SessionCommand* CreateSetWindowBoundsCommand(const SessionID& window_id, | 236 SessionCommand* CreateSetWindowBoundsCommand(const SessionID& window_id, |
232 const gfx::Rect& bounds, | 237 const gfx::Rect& bounds, |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 | 464 |
460 // Constants used in calculating histogram data. | 465 // Constants used in calculating histogram data. |
461 const base::TimeDelta save_delay_in_millis_; | 466 const base::TimeDelta save_delay_in_millis_; |
462 const base::TimeDelta save_delay_in_mins_; | 467 const base::TimeDelta save_delay_in_mins_; |
463 const base::TimeDelta save_delay_in_hrs_; | 468 const base::TimeDelta save_delay_in_hrs_; |
464 | 469 |
465 DISALLOW_COPY_AND_ASSIGN(SessionService); | 470 DISALLOW_COPY_AND_ASSIGN(SessionService); |
466 }; | 471 }; |
467 | 472 |
468 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 473 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
OLD | NEW |