Home
last modified time | relevance | path

Searched refs:BaseSessionService (Results 1 – 18 of 18) sorted by relevance

/external/chromium/chrome/browser/sessions/
Dbase_session_service.cc19 BaseSessionService::InternalGetCommandsRequest::~InternalGetCommandsRequest() { in ~InternalGetCommandsRequest()
60 const int BaseSessionService::max_persist_navigation_count = 6;
62 BaseSessionService::BaseSessionService(SessionType type, in BaseSessionService() function in BaseSessionService
84 BaseSessionService::~BaseSessionService() { in ~BaseSessionService()
87 void BaseSessionService::DeleteLastSession() { in DeleteLastSession()
96 void BaseSessionService::ScheduleCommand(SessionCommand* command) { in ScheduleCommand()
103 void BaseSessionService::StartSaveTimer() { in StartSaveTimer()
108 save_factory_.NewRunnableMethod(&BaseSessionService::Save), in StartSaveTimer()
113 void BaseSessionService::Save() { in Save()
137 SessionCommand* BaseSessionService::CreateUpdateTabNavigationCommand( in CreateUpdateTabNavigationCommand()
[all …]
Dbase_session_service.h30 class BaseSessionService : public CancelableRequestProvider,
31 public base::RefCountedThreadSafe<BaseSessionService> {
45 BaseSessionService(SessionType type,
79 friend class base::RefCountedThreadSafe<BaseSessionService>;
81 virtual ~BaseSessionService();
178 ScopedRunnableMethodFactory<BaseSessionService> save_factory_;
190 DISALLOW_COPY_AND_ASSIGN(BaseSessionService);
Dsession_backend.cc54 bool Read(BaseSessionService::SessionType type,
88 bool SessionFileReader::Read(BaseSessionService::SessionType type, in Read()
107 if (type == BaseSessionService::TAB_RESTORE) { in Read()
198 SessionBackend::SessionBackend(BaseSessionService::SessionType type, in SessionBackend()
241 scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request) { in ReadLastSessionCommands()
247 BaseSessionService::InternalGetCommandsRequest::TupleType( in ReadLastSessionCommands()
274 if (type_ == BaseSessionService::TAB_RESTORE) { in MoveCurrentSessionToLastSession()
294 scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request) { in ReadCurrentSessionCommands()
300 BaseSessionService::InternalGetCommandsRequest::TupleType( in ReadCurrentSessionCommands()
318 if (type_ == BaseSessionService::TAB_RESTORE) in AppendCommandsToFile()
[all …]
Dsession_backend_unittest.cc55 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
64 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
73 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
103 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
128 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
143 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
162 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
180 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
195 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
Dsession_backend.h49 SessionBackend(BaseSessionService::SessionType type,
69 scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request);
88 scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request);
117 const BaseSessionService::SessionType type_;
Dsession_types.h86 friend class BaseSessionService;
Dsession_service.cc73 : public BaseSessionService::InternalGetCommandsRequest {
78 : BaseSessionService::InternalGetCommandsRequest(callback), in InternalSessionRequest()
133 : BaseSessionService(SESSION_RESTORE, profile, FilePath()), in SessionService()
143 : BaseSessionService(SESSION_RESTORE, NULL, save_path), in SessionService()
430 BaseSessionService::InternalGetCommandsRequest::TupleType( in GetCurrentSession()
444 BaseSessionService::Save(); in Save()
1237 BaseSessionService::ScheduleCommand(command); in ScheduleCommand()
Dtab_restore_service.h37 class TabRestoreService : public BaseSessionService {
Dtab_restore_service.cc187 : BaseSessionService(BaseSessionService::TAB_RESTORE, profile, in TabRestoreService()
474 BaseSessionService::Save(); in Save()
Dsession_service.h50 class SessionService : public BaseSessionService,
/external/chromium_org/chrome/browser/sessions/
Dbase_session_service.cc47 const BaseSessionService::InternalGetCommandsCallback& callback, in RunIfNotCanceled()
56 const BaseSessionService::InternalGetCommandsCallback& callback, in PostOrRunInternalGetCommandsCallback()
73 const int BaseSessionService::max_persist_navigation_count = 6;
75 BaseSessionService::BaseSessionService(SessionType type, in BaseSessionService() function in BaseSessionService
92 BaseSessionService::~BaseSessionService() { in ~BaseSessionService()
95 void BaseSessionService::DeleteLastSession() { in DeleteLastSession()
101 void BaseSessionService::ScheduleCommand(SessionCommand* command) { in ScheduleCommand()
108 void BaseSessionService::StartSaveTimer() { in StartSaveTimer()
115 base::Bind(&BaseSessionService::Save, weak_factory_.GetWeakPtr()), in StartSaveTimer()
120 void BaseSessionService::Save() { in Save()
[all …]
Dsession_backend_unittest.cc55 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
64 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
73 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
103 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
128 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
143 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
162 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
180 new SessionBackend(BaseSessionService::SESSION_RESTORE, path_)); in TEST_F()
195 backend = new SessionBackend(BaseSessionService::SESSION_RESTORE, path_); in TEST_F()
Dbase_session_service.h34 class BaseSessionService : public CancelableRequestProvider {
48 BaseSessionService(SessionType type,
61 virtual ~BaseSessionService();
176 base::WeakPtrFactory<BaseSessionService> weak_factory_;
191 DISALLOW_COPY_AND_ASSIGN(BaseSessionService);
Dsession_backend.cc57 bool Read(BaseSessionService::SessionType type,
91 bool SessionFileReader::Read(BaseSessionService::SessionType type, in Read()
110 if (type == BaseSessionService::TAB_RESTORE) { in Read()
204 SessionBackend::SessionBackend(BaseSessionService::SessionType type, in SessionBackend()
248 const BaseSessionService::InternalGetCommandsCallback& callback) { in ReadLastSessionCommands()
282 if (type_ == BaseSessionService::TAB_RESTORE) { in MoveCurrentSessionToLastSession()
314 if (type_ == BaseSessionService::TAB_RESTORE) in AppendCommandsToFile()
393 if (type_ == BaseSessionService::TAB_RESTORE) in GetLastSessionPath()
402 if (type_ == BaseSessionService::TAB_RESTORE) in GetCurrentSessionPath()
Dsession_backend.h49 SessionBackend(BaseSessionService::SessionType type,
71 const BaseSessionService::InternalGetCommandsCallback& callback);
114 const BaseSessionService::SessionType type_;
Dpersistent_tab_restore_service.cc118 : public BaseSessionService,
240 : BaseSessionService(BaseSessionService::TAB_RESTORE, profile, in Delegate()
281 BaseSessionService::Save(); in Save()
Dsession_service.h57 class SessionService : public BaseSessionService,
Dsession_service.cc187 : BaseSessionService(SESSION_RESTORE, profile, base::FilePath()), in SessionService()
198 : BaseSessionService(SESSION_RESTORE, NULL, save_path), in SessionService()
513 BaseSessionService::Save(); in Save()
1480 BaseSessionService::ScheduleCommand(command); in ScheduleCommand()