| OLD | NEW | 
|---|
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SESSIONS_SESSION_BACKEND_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_SESSION_BACKEND_H_ | 
| 6 #define COMPONENTS_SESSIONS_SESSION_BACKEND_H_ | 6 #define COMPONENTS_SESSIONS_CORE_SESSION_BACKEND_H_ | 
| 7 | 7 | 
| 8 #include <vector> | 8 #include <vector> | 
| 9 | 9 | 
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" | 
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" | 
| 12 #include "base/task/cancelable_task_tracker.h" | 12 #include "base/task/cancelable_task_tracker.h" | 
| 13 #include "components/sessions/base_session_service.h" | 13 #include "components/sessions/core/base_session_service.h" | 
| 14 #include "components/sessions/session_command.h" | 14 #include "components/sessions/core/session_command.h" | 
| 15 #include "components/sessions/sessions_export.h" | 15 #include "components/sessions/core/sessions_export.h" | 
| 16 | 16 | 
| 17 namespace base { | 17 namespace base { | 
| 18 class File; | 18 class File; | 
| 19 } | 19 } | 
| 20 | 20 | 
| 21 namespace sessions { | 21 namespace sessions { | 
| 22 // SessionBackend ------------------------------------------------------------- | 22 // SessionBackend ------------------------------------------------------------- | 
| 23 | 23 | 
| 24 // SessionBackend is the backend used by BaseSessionService. It is responsible | 24 // SessionBackend is the backend used by BaseSessionService. It is responsible | 
| 25 // for maintaining two files: | 25 // for maintaining two files: | 
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 135   bool inited_; | 135   bool inited_; | 
| 136 | 136 | 
| 137   // If true, the file is empty (no commands have been added to it). | 137   // If true, the file is empty (no commands have been added to it). | 
| 138   bool empty_file_; | 138   bool empty_file_; | 
| 139 | 139 | 
| 140   DISALLOW_COPY_AND_ASSIGN(SessionBackend); | 140   DISALLOW_COPY_AND_ASSIGN(SessionBackend); | 
| 141 }; | 141 }; | 
| 142 | 142 | 
| 143 }  // namespace sessions | 143 }  // namespace sessions | 
| 144 | 144 | 
| 145 #endif  // COMPONENTS_SESSIONS_SESSION_BACKEND_H_ | 145 #endif  // COMPONENTS_SESSIONS_CORE_SESSION_BACKEND_H_ | 
| OLD | NEW | 
|---|