Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2731)

Unified Diff: chrome/browser/sessions/session_backend_android.cc

Issue 10989027: Split TabRestoreService into InMemoryTRS and PersistentTRS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
+}
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698