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

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

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 8 years, 6 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_SESSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 SessionCommand* CreateSetSelectedNavigationIndexCommand( 249 SessionCommand* CreateSetSelectedNavigationIndexCommand(
250 const SessionID& tab_id, 250 const SessionID& tab_id,
251 int index); 251 int index);
252 252
253 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id, 253 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id,
254 WindowType type); 254 WindowType type);
255 255
256 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id, 256 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id,
257 bool is_pinned); 257 bool is_pinned);
258 258
259 SessionCommand* CreateSessionStorageAssociatedCommand(
260 const SessionID& tab_id,
261 const std::string& session_storage_persistent_id);
262
259 // Callback from the backend for getting the commands from the save file. 263 // Callback from the backend for getting the commands from the save file.
260 // Converts the commands in SessionWindows and notifies the real callback. 264 // Converts the commands in SessionWindows and notifies the real callback.
261 void OnGotSessionCommands( 265 void OnGotSessionCommands(
262 Handle handle, 266 Handle handle,
263 scoped_refptr<InternalGetCommandsRequest> request); 267 scoped_refptr<InternalGetCommandsRequest> request);
264 268
265 // Converts the commands into SessionWindows. On return any valid 269 // Converts the commands into SessionWindows. On return any valid
266 // windows are added to valid_windows. It is up to the caller to delete 270 // windows are added to valid_windows. It is up to the caller to delete
267 // the windows added to valid_windows. 271 // the windows added to valid_windows.
268 // 272 //
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 const base::TimeDelta save_delay_in_hrs_; 475 const base::TimeDelta save_delay_in_hrs_;
472 476
473 // For browser_tests, since we want to simulate the browser shutting down 477 // For browser_tests, since we want to simulate the browser shutting down
474 // without quitting. 478 // without quitting.
475 bool force_browser_not_alive_with_no_windows_; 479 bool force_browser_not_alive_with_no_windows_;
476 480
477 DISALLOW_COPY_AND_ASSIGN(SessionService); 481 DISALLOW_COPY_AND_ASSIGN(SessionService);
478 }; 482 };
479 483
480 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 484 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698