| OLD | NEW |
| 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 #include "chrome/browser/sessions/tab_restore_service.h" | 5 #include "chrome/browser/sessions/tab_restore_service.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 14 #include "base/stl_util-inl.h" | 14 #include "base/stl_util.h" |
| 15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
| 16 #include "chrome/browser/extensions/extension_tab_helper.h" | 16 #include "chrome/browser/extensions/extension_tab_helper.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/sessions/session_service.h" | 18 #include "chrome/browser/sessions/session_service.h" |
| 19 #include "chrome/browser/sessions/session_service_factory.h" | 19 #include "chrome/browser/sessions/session_service_factory.h" |
| 20 #include "chrome/browser/sessions/session_command.h" | 20 #include "chrome/browser/sessions/session_command.h" |
| 21 #include "chrome/browser/sessions/session_types.h" | 21 #include "chrome/browser/sessions/session_types.h" |
| 22 #include "chrome/browser/sessions/tab_restore_service_delegate.h" | 22 #include "chrome/browser/sessions/tab_restore_service_delegate.h" |
| 23 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 23 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
| 24 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 24 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| (...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 // correctly write out the entries when Save is invoked (Save starts from | 1085 // correctly write out the entries when Save is invoked (Save starts from |
| 1086 // the front, not the end and we just added the entries to the end). | 1086 // the front, not the end and we just added the entries to the end). |
| 1087 entries_to_write_ = staging_entries_.size(); | 1087 entries_to_write_ = staging_entries_.size(); |
| 1088 | 1088 |
| 1089 PruneAndNotify(); | 1089 PruneAndNotify(); |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 Time TabRestoreService::TimeNow() const { | 1092 Time TabRestoreService::TimeNow() const { |
| 1093 return time_factory_ ? time_factory_->TimeNow() : Time::Now(); | 1093 return time_factory_ ? time_factory_->TimeNow() : Time::Now(); |
| 1094 } | 1094 } |
| OLD | NEW |