forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp_launch_info.h
66 lines (52 loc) · 2.19 KB
/
app_launch_info.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright 2020 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 COMPONENTS_FULL_RESTORE_APP_LAUNCH_INFO_H_
#define COMPONENTS_FULL_RESTORE_APP_LAUNCH_INFO_H_
#include <vector>
#include "base/component_export.h"
#include "base/files/file_path.h"
#include "base/optional.h"
#include "components/services/app_service/public/mojom/types.mojom.h"
#include "ui/base/window_open_disposition.h"
#include "url/gurl.h"
namespace full_restore {
// This class is the parameter for the interface SaveAppLaunchInfo, to save the
// app launch information.
struct COMPONENT_EXPORT(FULL_RESTORE) AppLaunchInfo {
AppLaunchInfo(const std::string& app_id,
int32_t window_id,
apps::mojom::LaunchContainer container,
WindowOpenDisposition disposition,
int64_t display_id,
std::vector<base::FilePath> launch_files,
apps::mojom::IntentPtr intent);
AppLaunchInfo(const std::string& app_id, int32_t window_id);
AppLaunchInfo(const std::string& app_id,
apps::mojom::LaunchContainer container,
WindowOpenDisposition disposition,
int64_t display_id,
std::vector<base::FilePath> launch_files,
apps::mojom::IntentPtr intent);
AppLaunchInfo(const std::string& app_id,
int32_t event_flags,
int64_t display_id);
AppLaunchInfo(const std::string& app_id,
int32_t event_flags,
apps::mojom::IntentPtr intent,
int64_t display_id);
AppLaunchInfo(const AppLaunchInfo&) = delete;
AppLaunchInfo& operator=(const AppLaunchInfo&) = delete;
~AppLaunchInfo();
std::string app_id;
base::Optional<int32_t> window_id;
base::Optional<int32_t> event_flag;
base::Optional<int32_t> container;
base::Optional<int32_t> disposition;
base::Optional<int64_t> display_id;
base::Optional<GURL> url;
base::Optional<std::vector<base::FilePath>> file_paths;
base::Optional<apps::mojom::IntentPtr> intent;
};
} // namespace full_restore
#endif // COMPONENTS_FULL_RESTORE_APP_LAUNCH_INFO_H_