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

Side by Side Diff: chrome/browser/session_service.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/session_service.h" 5 #include "chrome/browser/session_service.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/pickle.h" 11 #include "base/pickle.h"
12 #include "base/thread.h" 12 #include "base/thread.h"
13 #include "chrome/browser/browser_list.h" 13 #include "chrome/browser/browser_list.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/browser_window.h" 15 #include "chrome/browser/browser_window.h"
16 #include "chrome/browser/navigation_controller.h" 16 #include "chrome/browser/navigation_controller.h"
17 #include "chrome/browser/navigation_entry.h" 17 #include "chrome/browser/navigation_entry.h"
18 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profile.h"
19 #include "chrome/browser/session_backend.h" 19 #include "chrome/browser/session_backend.h"
20 #include "chrome/browser/tab_contents.h" 20 #include "chrome/browser/tab_contents.h"
21 #include "chrome/common/notification_details.h" 21 #include "chrome/common/notification_details.h"
22 #include "chrome/common/notification_service.h" 22 #include "chrome/common/notification_service.h"
23 #include "chrome/common/notification_types.h" 23 #include "chrome/common/notification_types.h"
24 #include "chrome/common/scoped_vector.h" 24 #include "chrome/common/scoped_vector.h"
25 #include "chrome/common/win_util.h" 25 #include "chrome/common/win_util.h"
26 26
27 using base::Time;
28
27 // Identifier for commands written to file. 29 // Identifier for commands written to file.
28 static const SessionCommand::id_type kCommandSetTabWindow = 0; 30 static const SessionCommand::id_type kCommandSetTabWindow = 0;
29 // kCommandSetWindowBounds is no longer used (it's superseded by 31 // kCommandSetWindowBounds is no longer used (it's superseded by
30 // kCommandSetWindowBounds2). I leave it here to document what it was. 32 // kCommandSetWindowBounds2). I leave it here to document what it was.
31 // static const SessionCommand::id_type kCommandSetWindowBounds = 1; 33 // static const SessionCommand::id_type kCommandSetWindowBounds = 1;
32 static const SessionCommand::id_type kCommandSetTabIndexInWindow = 2; 34 static const SessionCommand::id_type kCommandSetTabIndexInWindow = 2;
33 static const SessionCommand::id_type kCommandTabClosed = 3; 35 static const SessionCommand::id_type kCommandTabClosed = 3;
34 static const SessionCommand::id_type kCommandWindowClosed = 4; 36 static const SessionCommand::id_type kCommandWindowClosed = 4;
35 static const SessionCommand::id_type 37 static const SessionCommand::id_type
36 kCommandTabNavigationPathPrunedFromBack = 5; 38 kCommandTabNavigationPathPrunedFromBack = 5;
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 // Don't track entries that have post data. Post data may contain passwords 1213 // Don't track entries that have post data. Post data may contain passwords
1212 // and other sensitive data users don't want stored to disk. 1214 // and other sensitive data users don't want stored to disk.
1213 return entry.display_url().is_valid() && !entry.has_post_data(); 1215 return entry.display_url().is_valid() && !entry.has_post_data();
1214 } 1216 }
1215 1217
1216 // InternalSavedSessionRequest ------------------------------------------------ 1218 // InternalSavedSessionRequest ------------------------------------------------
1217 1219
1218 SessionService::InternalSavedSessionRequest::~InternalSavedSessionRequest() { 1220 SessionService::InternalSavedSessionRequest::~InternalSavedSessionRequest() {
1219 STLDeleteElements(&commands); 1221 STLDeleteElements(&commands);
1220 } 1222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698