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

Side by Side 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, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/sessions/session_backend.h"
6
7 #include "base/stl_util.h"
8 #include "net/base/file_stream.h"
9
10 // 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
11 // Java side.
12
13 const int SessionBackend::kFileReadBufferSize = 0;
14
15 SessionBackend::SessionBackend(BaseSessionService::SessionType type,
16 const FilePath& path_to_dir)
17 : type_(type),
18 path_to_dir_(path_to_dir) {
19 }
20
21 void SessionBackend::Init() {
22 }
23
24 void SessionBackend::AppendCommands(std::vector<SessionCommand*>* commands,
25 bool reset_first) {
26 STLDeleteElements(commands);
27 delete commands;
28 }
29
30 void SessionBackend::ReadLastSessionCommands(
31 scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request) {
32 if (request->canceled())
33 return;
34 Init();
35 ReadLastSessionCommandsImpl(&(request->commands));
36 request->ForwardResult(request->handle(), request);
37 }
38
39 bool SessionBackend::ReadLastSessionCommandsImpl(
40 std::vector<SessionCommand*>* commands) {
41 commands->clear();
42 return false;
43 }
44
45 void SessionBackend::DeleteLastSession() {
46 }
47
48 void SessionBackend::MoveCurrentSessionToLastSession() {
49 }
50
51 void SessionBackend::ReadCurrentSessionCommands(
52 scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request) {
53 if (request->canceled())
54 return;
55 Init();
56 ReadCurrentSessionCommandsImpl(&(request->commands));
57 request->ForwardResult(request->handle(), request);
58 }
59
60 bool SessionBackend::ReadCurrentSessionCommandsImpl(
61 std::vector<SessionCommand*>* commands) {
62 commands->clear();
63 return false;
64 }
65
66 SessionBackend::~SessionBackend() {
67 }
OLDNEW
« 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