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

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

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/sessions/session_service.h" 7 #include "chrome/browser/sessions/session_service.h"
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/pickle.h" 13 #include "base/pickle.h"
14 #include "base/scoped_vector.h"
14 #include "base/thread.h" 15 #include "base/thread.h"
15 #include "chrome/browser/browser_init.h" 16 #include "chrome/browser/browser_init.h"
16 #include "chrome/browser/browser_list.h" 17 #include "chrome/browser/browser_list.h"
17 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/browser_window.h" 19 #include "chrome/browser/browser_window.h"
19 #include "chrome/browser/profile.h" 20 #include "chrome/browser/profile.h"
20 #include "chrome/browser/session_startup_pref.h" 21 #include "chrome/browser/session_startup_pref.h"
21 #include "chrome/browser/sessions/session_backend.h" 22 #include "chrome/browser/sessions/session_backend.h"
22 #include "chrome/browser/sessions/session_command.h" 23 #include "chrome/browser/sessions/session_command.h"
23 #include "chrome/browser/sessions/session_restore.h" 24 #include "chrome/browser/sessions/session_restore.h"
24 #include "chrome/browser/sessions/session_types.h" 25 #include "chrome/browser/sessions/session_types.h"
25 #include "chrome/browser/tab_contents/navigation_controller.h" 26 #include "chrome/browser/tab_contents/navigation_controller.h"
26 #include "chrome/browser/tab_contents/navigation_entry.h" 27 #include "chrome/browser/tab_contents/navigation_entry.h"
27 #include "chrome/common/notification_details.h" 28 #include "chrome/common/notification_details.h"
28 #include "chrome/common/notification_service.h" 29 #include "chrome/common/notification_service.h"
29 #include "chrome/common/scoped_vector.h"
30 30
31 using base::Time; 31 using base::Time;
32 32
33 // Identifier for commands written to file. 33 // Identifier for commands written to file.
34 static const SessionCommand::id_type kCommandSetTabWindow = 0; 34 static const SessionCommand::id_type kCommandSetTabWindow = 0;
35 // kCommandSetWindowBounds is no longer used (it's superseded by 35 // kCommandSetWindowBounds is no longer used (it's superseded by
36 // kCommandSetWindowBounds2). I leave it here to document what it was. 36 // kCommandSetWindowBounds2). I leave it here to document what it was.
37 // static const SessionCommand::id_type kCommandSetWindowBounds = 1; 37 // static const SessionCommand::id_type kCommandSetWindowBounds = 1;
38 static const SessionCommand::id_type kCommandSetTabIndexInWindow = 2; 38 static const SessionCommand::id_type kCommandSetTabIndexInWindow = 2;
39 static const SessionCommand::id_type kCommandTabClosed = 3; 39 static const SessionCommand::id_type kCommandTabClosed = 3;
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 browser->profile()->GetOriginalProfile() == profile()) { 1097 browser->profile()->GetOriginalProfile() == profile()) {
1098 return true; 1098 return true;
1099 } 1099 }
1100 } 1100 }
1101 return false; 1101 return false;
1102 } 1102 }
1103 1103
1104 bool SessionService::ShouldTrackChangesToWindow(const SessionID& window_id) { 1104 bool SessionService::ShouldTrackChangesToWindow(const SessionID& window_id) {
1105 return windows_tracking_.find(window_id.id()) != windows_tracking_.end(); 1105 return windows_tracking_.find(window_id.id()) != windows_tracking_.end();
1106 } 1106 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_backend_unittest.cc ('k') | chrome/browser/sessions/session_service_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698