Chromium Code Reviews| Index: chrome/browser/sessions/session_backend_android.cc |
| diff --git a/chrome/browser/sessions/session_backend_android.cc b/chrome/browser/sessions/session_backend_android.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cbfffdd27469cf257a0a7727f9ae8a932d27acbd |
| --- /dev/null |
| +++ b/chrome/browser/sessions/session_backend_android.cc |
| @@ -0,0 +1,67 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/sessions/session_backend.h" |
| + |
| +#include "base/stl_util.h" |
| +#include "net/base/file_stream.h" |
| + |
| +// Dummy session backend for Android. Tab and session persistence is handled |
|
sky
2012/09/26 20:54:21
If tab and session persistence is handled else whe
Philippe
2012/09/26 21:28:09
That's a good question. We do use TabRestoreServic
Philippe
2012/09/26 21:38:10
s/no-op/op. I meant notifications seem to be the o
|
| +// Java side. |
| + |
| +const int SessionBackend::kFileReadBufferSize = 0; |
| + |
| +SessionBackend::SessionBackend(BaseSessionService::SessionType type, |
| + const FilePath& path_to_dir) |
| + : type_(type), |
| + path_to_dir_(path_to_dir) { |
| +} |
| + |
| +void SessionBackend::Init() { |
| +} |
| + |
| +void SessionBackend::AppendCommands(std::vector<SessionCommand*>* commands, |
| + bool reset_first) { |
| + STLDeleteElements(commands); |
| + delete commands; |
| +} |
| + |
| +void SessionBackend::ReadLastSessionCommands( |
| + scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request) { |
| + if (request->canceled()) |
| + return; |
| + Init(); |
| + ReadLastSessionCommandsImpl(&(request->commands)); |
| + request->ForwardResult(request->handle(), request); |
| +} |
| + |
| +bool SessionBackend::ReadLastSessionCommandsImpl( |
| + std::vector<SessionCommand*>* commands) { |
| + commands->clear(); |
| + return false; |
| +} |
| + |
| +void SessionBackend::DeleteLastSession() { |
| +} |
| + |
| +void SessionBackend::MoveCurrentSessionToLastSession() { |
| +} |
| + |
| +void SessionBackend::ReadCurrentSessionCommands( |
| + scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request) { |
| + if (request->canceled()) |
| + return; |
| + Init(); |
| + ReadCurrentSessionCommandsImpl(&(request->commands)); |
| + request->ForwardResult(request->handle(), request); |
| +} |
| + |
| +bool SessionBackend::ReadCurrentSessionCommandsImpl( |
| + std::vector<SessionCommand*>* commands) { |
| + commands->clear(); |
| + return false; |
| +} |
| + |
| +SessionBackend::~SessionBackend() { |
| +} |