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

Side by Side Diff: chrome/browser/sessions/session_service_test_helper.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 33
34 void PrepareTabInWindow(const SessionID& window_id, 34 void PrepareTabInWindow(const SessionID& window_id,
35 const SessionID& tab_id, 35 const SessionID& tab_id,
36 int visual_index, 36 int visual_index,
37 bool select); 37 bool select);
38 38
39 void SetTabExtensionAppID(const SessionID& window_id, 39 void SetTabExtensionAppID(const SessionID& window_id,
40 const SessionID& tab_id, 40 const SessionID& tab_id,
41 const std::string& extension_app_id); 41 const std::string& extension_app_id);
42 42
43 void SetTabUserAgentOverride(const SessionID& window_id,
44 const SessionID& tab_id,
45 const std::string& user_agent_override);
46
43 // Reads the contents of the last session. 47 // Reads the contents of the last session.
44 void ReadWindows(std::vector<SessionWindow*>* windows); 48 void ReadWindows(std::vector<SessionWindow*>* windows);
45 49
46 void AssertTabEquals(SessionID& window_id, 50 void AssertTabEquals(SessionID& window_id,
47 SessionID& tab_id, 51 SessionID& tab_id,
48 int visual_index, 52 int visual_index,
49 int nav_index, 53 int nav_index,
50 size_t nav_count, 54 size_t nav_count,
51 const SessionTab& session_tab); 55 const SessionTab& session_tab);
52 56
(...skipping 15 matching lines...) Expand all
68 72
69 SessionBackend* backend(); 73 SessionBackend* backend();
70 74
71 private: 75 private:
72 scoped_ptr<SessionService> service_; 76 scoped_ptr<SessionService> service_;
73 77
74 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); 78 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper);
75 }; 79 };
76 80
77 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 81 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/sessions/session_service_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698