OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef EXTENSIONS_BROWSER_EXTERNAL_EXTENSION_INSTALL_INFO_H_ | |
6 #define EXTENSIONS_BROWSER_EXTERNAL_EXTENSION_INSTALL_INFO_H_ | |
7 | |
8 #include "base/files/file_path.h" | |
9 #include "base/memory/scoped_vector.h" | |
10 #include "base/version.h" | |
11 #include "extensions/common/manifest.h" | |
12 #include "url/gurl.h" | |
13 | |
14 namespace extensions { | |
15 | |
16 struct ExternalExtensionInstallInfo { | |
asargent_no_longer_on_chrome
2016/01/25 18:50:52
suggestion: consider removing "Extension" from thi
lazyboy
2016/01/26 05:20:04
Thanks.
Done.
| |
17 ExternalExtensionInstallInfo(const std::string& extension_id, | |
18 int creation_flags, | |
19 bool mark_acknowledged); | |
20 virtual ~ExternalExtensionInstallInfo() {} | |
21 | |
22 std::string extension_id; | |
23 int creation_flags; | |
24 bool mark_acknowledged; | |
25 | |
26 private: | |
27 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionInstallInfo); | |
28 }; | |
29 | |
30 struct ExternalExtensionInstallInfoFile : public ExternalExtensionInstallInfo { | |
31 ExternalExtensionInstallInfoFile(const std::string& extension_id, | |
32 scoped_ptr<base::Version> version, | |
33 const base::FilePath& path, | |
34 Manifest::Location crx_location, | |
35 int creation_flags, | |
36 bool mark_acknowledged, | |
37 bool install_immediately); | |
38 ~ExternalExtensionInstallInfoFile() override; | |
39 | |
40 scoped_ptr<base::Version> version; | |
41 base::FilePath path; | |
42 Manifest::Location crx_location; | |
43 bool install_immediately; | |
44 }; | |
45 | |
46 struct ExternalExtensionInstallInfoUpdateUrl | |
47 : public ExternalExtensionInstallInfo { | |
48 ExternalExtensionInstallInfoUpdateUrl(const std::string& extension_id, | |
49 const std::string& install_parameter, | |
50 scoped_ptr<GURL> update_url, | |
51 Manifest::Location download_location, | |
52 int creation_flags, | |
53 bool mark_acknowledged); | |
54 ~ExternalExtensionInstallInfoUpdateUrl() override; | |
55 | |
56 std::string install_parameter; | |
57 scoped_ptr<GURL> update_url; | |
58 Manifest::Location download_location; | |
59 }; | |
60 | |
61 } // namespace extensions | |
62 #endif // EXTENSIONS_BROWSER_EXTERNAL_EXTENSION_INSTALL_INFO_H_ | |
OLD | NEW |