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

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

Issue 10170016: Add info about user agent overrides to WebContents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added SessionService saving Created 8 years, 8 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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698