| 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/session_restore.h" | 5 #include "chrome/browser/sessions/session_restore.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "chrome/browser/android/tab_android.h" | 10 #include "chrome/browser/android/tab_android.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/android/tab_model/tab_model.h" | 12 #include "chrome/browser/ui/android/tab_model/tab_model.h" |
| 13 #include "chrome/browser/ui/android/tab_model/tab_model_list.h" | 13 #include "chrome/browser/ui/android/tab_model/tab_model_list.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_finder.h" | 15 #include "chrome/browser/ui/browser_finder.h" |
| 16 #include "components/sessions/content/content_serialized_navigation_builder.h" | 16 #include "components/sessions/content/content_serialized_navigation_builder.h" |
| 17 #include "components/sessions/session_types.h" | 17 #include "components/sessions/core/session_types.h" |
| 18 #include "content/public/browser/navigation_controller.h" | 18 #include "content/public/browser/navigation_controller.h" |
| 19 #include "content/public/browser/navigation_entry.h" | 19 #include "content/public/browser/navigation_entry.h" |
| 20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 21 | 21 |
| 22 // The android implementation does not do anything "foreign session" specific. | 22 // The android implementation does not do anything "foreign session" specific. |
| 23 // We use it to restore tabs from "recently closed" too. | 23 // We use it to restore tabs from "recently closed" too. |
| 24 // static | 24 // static |
| 25 content::WebContents* SessionRestore::RestoreForeignSessionTab( | 25 content::WebContents* SessionRestore::RestoreForeignSessionTab( |
| 26 content::WebContents* web_contents, | 26 content::WebContents* web_contents, |
| 27 const sessions::SessionTab& session_tab, | 27 const sessions::SessionTab& session_tab, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 57 | 57 |
| 58 // static | 58 // static |
| 59 std::vector<Browser*> SessionRestore::RestoreForeignSessionWindows( | 59 std::vector<Browser*> SessionRestore::RestoreForeignSessionWindows( |
| 60 Profile* profile, | 60 Profile* profile, |
| 61 chrome::HostDesktopType host_desktop_type, | 61 chrome::HostDesktopType host_desktop_type, |
| 62 std::vector<const sessions::SessionWindow*>::const_iterator begin, | 62 std::vector<const sessions::SessionWindow*>::const_iterator begin, |
| 63 std::vector<const sessions::SessionWindow*>::const_iterator end) { | 63 std::vector<const sessions::SessionWindow*>::const_iterator end) { |
| 64 NOTREACHED(); | 64 NOTREACHED(); |
| 65 return std::vector<Browser*>(); | 65 return std::vector<Browser*>(); |
| 66 } | 66 } |
| OLD | NEW |