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

Side by Side Diff: chrome/browser/sessions/tab_restore_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: Forgot to initialize bool in constructor; win_rel caught it Created 8 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
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_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 int tabstrip_index; 97 int tabstrip_index;
98 98
99 // True if the tab was pinned. 99 // True if the tab was pinned.
100 bool pinned; 100 bool pinned;
101 101
102 // If non-empty gives the id of the extension for the tab. 102 // If non-empty gives the id of the extension for the tab.
103 std::string extension_app_id; 103 std::string extension_app_id;
104 104
105 // The associated session storage namespace (if any). 105 // The associated session storage namespace (if any).
106 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace; 106 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace;
107
108 // The user agent override used for the tab's navigations (if applicable).
109 std::string user_agent_override;
107 }; 110 };
108 111
109 // Represents a previously open window. 112 // Represents a previously open window.
110 struct Window : public Entry { 113 struct Window : public Entry {
111 Window(); 114 Window();
112 virtual ~Window(); 115 virtual ~Window();
113 116
114 // The tabs that comprised the window, in order. 117 // The tabs that comprised the window, in order.
115 std::vector<Tab> tabs; 118 std::vector<Tab> tabs;
116 119
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // loading LoadStateChanged is invoked, which adds these entries to 376 // loading LoadStateChanged is invoked, which adds these entries to
374 // entries_. 377 // entries_.
375 std::vector<Entry*> staging_entries_; 378 std::vector<Entry*> staging_entries_;
376 379
377 TimeFactory* time_factory_; 380 TimeFactory* time_factory_;
378 381
379 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); 382 DISALLOW_COPY_AND_ASSIGN(TabRestoreService);
380 }; 383 };
381 384
382 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 385 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_types.cc ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698