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

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

Issue 4158009: Session sync integration tests. Left out many client for now, since even... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 SessionCommand* CreateSetSelectedNavigationIndexCommand( 233 SessionCommand* CreateSetSelectedNavigationIndexCommand(
234 const SessionID& tab_id, 234 const SessionID& tab_id,
235 int index); 235 int index);
236 236
237 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id, 237 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id,
238 WindowType type); 238 WindowType type);
239 239
240 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id, 240 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id,
241 bool is_pinned); 241 bool is_pinned);
242 242
243 // Callback form the backend for getting the commands from the previous 243 // Callback from the backend for getting the commands from the previous
244 // or save file. Converts the commands in SessionWindows and notifies 244 // or save file. Converts the commands in SessionWindows and notifies
245 // the real callback. 245 // the real callback.
246 void OnGotSessionCommands( 246 void OnGotSessionCommands(
247 Handle handle, 247 Handle handle,
248 scoped_refptr<InternalGetCommandsRequest> request); 248 scoped_refptr<InternalGetCommandsRequest> request);
249 249
250 // Converts the commands into SessionWindows. On return any valid 250 // Converts the commands into SessionWindows. On return any valid
251 // windows are added to valid_windows. It is up to the caller to delete 251 // windows are added to valid_windows. It is up to the caller to delete
252 // the windows added to valid_windows. 252 // the windows added to valid_windows.
253 // 253 //
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 // Constants used in calculating histogram data. 453 // Constants used in calculating histogram data.
454 const base::TimeDelta save_delay_in_millis_; 454 const base::TimeDelta save_delay_in_millis_;
455 const base::TimeDelta save_delay_in_mins_; 455 const base::TimeDelta save_delay_in_mins_;
456 const base::TimeDelta save_delay_in_hrs_; 456 const base::TimeDelta save_delay_in_hrs_;
457 457
458 DISALLOW_COPY_AND_ASSIGN(SessionService); 458 DISALLOW_COPY_AND_ASSIGN(SessionService);
459 }; 459 };
460 460
461 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 461 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/foreign_session_handler.cc ('k') | chrome/browser/sessions/session_service_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698