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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/gtest_prod_util.h" |
13 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
15 #include "base/task/cancelable_task_tracker.h" | 16 #include "base/task/cancelable_task_tracker.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "chrome/browser/defaults.h" | 18 #include "chrome/browser/defaults.h" |
18 #include "chrome/browser/sessions/session_common_utils.h" | 19 #include "chrome/browser/sessions/session_common_utils.h" |
19 #include "chrome/browser/sessions/session_service_utils.h" | 20 #include "chrome/browser/sessions/session_service_utils.h" |
20 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
21 #include "chrome/browser/ui/browser_finder.h" | 22 #include "chrome/browser/ui/browser_finder.h" |
22 #include "chrome/browser/ui/browser_list_observer.h" | 23 #include "chrome/browser/ui/browser_list_observer.h" |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // For browser_tests, since we want to simulate the browser shutting down | 400 // For browser_tests, since we want to simulate the browser shutting down |
400 // without quitting. | 401 // without quitting. |
401 bool force_browser_not_alive_with_no_windows_; | 402 bool force_browser_not_alive_with_no_windows_; |
402 | 403 |
403 base::WeakPtrFactory<SessionService> weak_factory_; | 404 base::WeakPtrFactory<SessionService> weak_factory_; |
404 | 405 |
405 DISALLOW_COPY_AND_ASSIGN(SessionService); | 406 DISALLOW_COPY_AND_ASSIGN(SessionService); |
406 }; | 407 }; |
407 | 408 |
408 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 409 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
OLD | NEW |