OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TEST_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 | 7 |
8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_model.h" |
12 #include "chrome/browser/browser_prefs.h" | 13 #include "chrome/browser/browser_prefs.h" |
13 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
14 #include "chrome/browser/search_engines/template_url_model.h" | 15 #include "chrome/browser/search_engines/template_url_model.h" |
15 #include "chrome/browser/sessions/session_service.h" | 16 #include "chrome/browser/sessions/session_service.h" |
16 #include "chrome/common/pref_service.h" | 17 #include "chrome/common/pref_service.h" |
17 | 18 |
18 #if defined(OS_POSIX) | 19 #if defined(OS_POSIX) |
19 // TODO(port): get rid of this include. It's used just to provide declarations | 20 // TODO(port): get rid of this include. It's used just to provide declarations |
20 // and stub definitions for classes we encouter during the porting effort. | 21 // and stub definitions for classes we encouter during the porting effort. |
21 #include "chrome/common/temp_scaffolding_stubs.h" | 22 #include "chrome/common/temp_scaffolding_stubs.h" |
22 #endif | 23 #endif |
23 | 24 |
24 // TODO(port): Get rid of this section and finish porting. | 25 // TODO(port): Get rid of this section and finish porting. |
25 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
26 #include "chrome/browser/bookmarks/bookmark_model.h" | |
27 #include "chrome/browser/history/history.h" | 27 #include "chrome/browser/history/history.h" |
28 #endif | 28 #endif |
29 | 29 |
30 class TestingProfile : public Profile { | 30 class TestingProfile : public Profile { |
31 public: | 31 public: |
32 TestingProfile(); | 32 TestingProfile(); |
33 // Creates a new profile by adding |count| to the end of the path. Use this | 33 // Creates a new profile by adding |count| to the end of the path. Use this |
34 // when you need to have more than one TestingProfile running at the same | 34 // when you need to have more than one TestingProfile running at the same |
35 // time. | 35 // time. |
36 explicit TestingProfile(int count); | 36 explicit TestingProfile(int count); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 std::wstring id_; | 222 std::wstring id_; |
223 | 223 |
224 bool off_the_record_; | 224 bool off_the_record_; |
225 | 225 |
226 // Did the last session exit cleanly? Default is true. | 226 // Did the last session exit cleanly? Default is true. |
227 bool last_session_exited_cleanly_; | 227 bool last_session_exited_cleanly_; |
228 }; | 228 }; |
229 | 229 |
230 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 230 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |