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

Side by Side Diff: chrome/browser/sessions/base_session_service.h

Issue 10989027: Split TabRestoreService into InMemoryTRS and PersistentTRS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build on Mac (not tested locally) 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 29 matching lines...) Expand all
40 // Init. 40 // Init.
41 // |type| gives the type of session service, |profile| the profile and 41 // |type| gives the type of session service, |profile| the profile and
42 // |path| the path to save files to. If |profile| is non-NULL, |path| is 42 // |path| the path to save files to. If |profile| is non-NULL, |path| is
43 // ignored and instead the path comes from the profile. 43 // ignored and instead the path comes from the profile.
44 BaseSessionService(SessionType type, 44 BaseSessionService(SessionType type,
45 Profile* profile, 45 Profile* profile,
46 const FilePath& path); 46 const FilePath& path);
47 47
48 Profile* profile() const { return profile_; } 48 Profile* profile() const { return profile_; }
49 49
50 // Deletes the last session.
sky 2012/10/22 13:51:35 Why remove this comment?
Philippe 2012/10/23 15:07:36 It didn't provide much more information that the m
51 void DeleteLastSession(); 50 void DeleteLastSession();
52 51
53 class InternalGetCommandsRequest; 52 class InternalGetCommandsRequest;
54 53
55 typedef base::Callback<void(Handle, 54 typedef base::Callback<void(Handle,
56 scoped_refptr<InternalGetCommandsRequest>)> 55 scoped_refptr<InternalGetCommandsRequest>)>
57 InternalGetCommandsCallback; 56 InternalGetCommandsCallback;
58 57
59 // Callback used when fetching the last session. The last session consists 58 // Callback used when fetching the last session. The last session consists
60 // of a vector of SessionCommands. 59 // of a vector of SessionCommands.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // over the commands. 197 // over the commands.
199 bool pending_reset_; 198 bool pending_reset_;
200 199
201 // The number of commands sent to the backend before doing a reset. 200 // The number of commands sent to the backend before doing a reset.
202 int commands_since_reset_; 201 int commands_since_reset_;
203 202
204 DISALLOW_COPY_AND_ASSIGN(BaseSessionService); 203 DISALLOW_COPY_AND_ASSIGN(BaseSessionService);
205 }; 204 };
206 205
207 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ 206 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698