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

Unified Diff: chrome/browser/sessions/session_backend.h

Issue 11446033: Convert SessionService to use new CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: chrome/browser/sessions/session_backend.h
diff --git a/chrome/browser/sessions/session_backend.h b/chrome/browser/sessions/session_backend.h
index 6ae8fbe34cb44aff92505af33328f652f7ad2a62..e7d5c5b13f56cadffa77b706183b9a71846e20fa 100644
--- a/chrome/browser/sessions/session_backend.h
+++ b/chrome/browser/sessions/session_backend.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/sessions/base_session_service.h"
#include "chrome/browser/sessions/session_command.h"
+#include "chrome/common/cancelable_task_tracker.h"
namespace net {
class FileStream;
@@ -65,7 +66,8 @@ class SessionBackend : public base::RefCountedThreadSafe<SessionBackend> {
// Invoked from the service to read the commands that make up the last
// session, invokes ReadLastSessionCommandsImpl to do the work.
void ReadLastSessionCommands(
- scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request);
+ const CancelableTaskTracker::IsCanceledCallback& is_canceled,
+ const BaseSessionService::InternalGetCommandsCallback& callback);
// Reads the commands from the last file.
//
@@ -81,11 +83,6 @@ class SessionBackend : public base::RefCountedThreadSafe<SessionBackend> {
// browsers are running.
void MoveCurrentSessionToLastSession();
- // Invoked from the service to read the commands that make up the current
- // session, invokes ReadCurrentSessionCommandsImpl to do the work.
- void ReadCurrentSessionCommands(
- scoped_refptr<BaseSessionService::InternalGetCommandsRequest> request);
-
// Reads the commands from the current file.
//
// On success, the read commands are added to commands. It is up to the

Powered by Google App Engine
This is Rietveld 408576698