OLD | NEW |
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 #include "chrome/browser/sessions/in_memory_tab_restore_service.h" | 5 #include "chrome/browser/sessions/in_memory_tab_restore_service.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 helper_.ClearEntries(); | 47 helper_.ClearEntries(); |
48 } | 48 } |
49 | 49 |
50 const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const { | 50 const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const { |
51 return helper_.entries(); | 51 return helper_.entries(); |
52 } | 52 } |
53 | 53 |
54 std::vector<content::WebContents*> | 54 std::vector<content::WebContents*> |
55 InMemoryTabRestoreService::RestoreMostRecentEntry( | 55 InMemoryTabRestoreService::RestoreMostRecentEntry( |
56 TabRestoreServiceDelegate* delegate, | 56 TabRestoreServiceDelegate* delegate, |
57 chrome::HostDesktopType host_desktop_type) { | 57 ui::HostDesktopType host_desktop_type) { |
58 return helper_.RestoreMostRecentEntry(delegate, host_desktop_type); | 58 return helper_.RestoreMostRecentEntry(delegate, host_desktop_type); |
59 } | 59 } |
60 | 60 |
61 TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById( | 61 TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById( |
62 SessionID::id_type id) { | 62 SessionID::id_type id) { |
63 return helper_.RemoveTabEntryById(id); | 63 return helper_.RemoveTabEntryById(id); |
64 } | 64 } |
65 | 65 |
66 std::vector<content::WebContents*> InMemoryTabRestoreService::RestoreEntryById( | 66 std::vector<content::WebContents*> InMemoryTabRestoreService::RestoreEntryById( |
67 TabRestoreServiceDelegate* delegate, | 67 TabRestoreServiceDelegate* delegate, |
68 SessionID::id_type id, | 68 SessionID::id_type id, |
69 chrome::HostDesktopType host_desktop_type, | 69 ui::HostDesktopType host_desktop_type, |
70 WindowOpenDisposition disposition) { | 70 WindowOpenDisposition disposition) { |
71 return helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition); | 71 return helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition); |
72 } | 72 } |
73 | 73 |
74 void InMemoryTabRestoreService::LoadTabsFromLastSession() { | 74 void InMemoryTabRestoreService::LoadTabsFromLastSession() { |
75 // Do nothing. This relies on tab persistence which is implemented in Java on | 75 // Do nothing. This relies on tab persistence which is implemented in Java on |
76 // the application side on Android. | 76 // the application side on Android. |
77 } | 77 } |
78 | 78 |
79 bool InMemoryTabRestoreService::IsLoaded() const { | 79 bool InMemoryTabRestoreService::IsLoaded() const { |
80 // See comment above. | 80 // See comment above. |
81 return true; | 81 return true; |
82 } | 82 } |
83 | 83 |
84 void InMemoryTabRestoreService::DeleteLastSession() { | 84 void InMemoryTabRestoreService::DeleteLastSession() { |
85 // See comment above. | 85 // See comment above. |
86 } | 86 } |
87 | 87 |
88 void InMemoryTabRestoreService::Shutdown() { | 88 void InMemoryTabRestoreService::Shutdown() { |
89 } | 89 } |
OLD | NEW |