| Index: chrome/browser/sessions/session_service_utils.h
|
| diff --git a/chrome/browser/sessions/session_service_utils.h b/chrome/browser/sessions/session_service_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e0a054a01fb08a624afca9ce7c247f35f97d016d
|
| --- /dev/null
|
| +++ b/chrome/browser/sessions/session_service_utils.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_
|
| +#define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_
|
| +
|
| +#include "chrome/browser/sessions/session_types.h"
|
| +#include "chrome/browser/ui/browser.h"
|
| +
|
| +// Used to distinguish an application from a ordinary content window.
|
| +enum AppType {
|
| + TYPE_APP,
|
| + TYPE_NORMAL
|
| +};
|
| +
|
| +// Returns true if a window of given |window_type| and |app_type| should get
|
| +// restored upon session restore.
|
| +bool ShouldRestoreWindowOfType(SessionWindow::WindowType type,
|
| + AppType app_type);
|
| +
|
| +// Removes unrestorable windows from the previous windows list.
|
| +void RemoveUnusedRestoreWindows(std::vector<SessionWindow*>* window_list);
|
| +
|
| +// Convert back/forward between the Browser and SessionService window types.
|
| +SessionWindow::WindowType WindowTypeForBrowserType(Browser::Type type);
|
| +Browser::Type BrowserTypeForWindowType(SessionWindow::WindowType type);
|
| +
|
| +#endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_
|
|
|