OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_ |
6 #define EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_ | 6 #define EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "extensions/common/manifest.h" | 10 #include "extensions/common/manifest.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 std::string extension_id; | 28 std::string extension_id; |
29 int creation_flags; | 29 int creation_flags; |
30 bool mark_acknowledged; | 30 bool mark_acknowledged; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(ExternalInstallInfo); | 33 DISALLOW_COPY_AND_ASSIGN(ExternalInstallInfo); |
34 }; | 34 }; |
35 | 35 |
36 struct ExternalInstallInfoFile : public ExternalInstallInfo { | 36 struct ExternalInstallInfoFile : public ExternalInstallInfo { |
37 ExternalInstallInfoFile(const std::string& extension_id, | 37 ExternalInstallInfoFile(const std::string& extension_id, |
38 scoped_ptr<base::Version> version, | 38 std::unique_ptr<base::Version> version, |
39 const base::FilePath& path, | 39 const base::FilePath& path, |
40 Manifest::Location crx_location, | 40 Manifest::Location crx_location, |
41 int creation_flags, | 41 int creation_flags, |
42 bool mark_acknowledged, | 42 bool mark_acknowledged, |
43 bool install_immediately); | 43 bool install_immediately); |
44 ~ExternalInstallInfoFile() override; | 44 ~ExternalInstallInfoFile() override; |
45 | 45 |
46 scoped_ptr<base::Version> version; | 46 std::unique_ptr<base::Version> version; |
47 base::FilePath path; | 47 base::FilePath path; |
48 Manifest::Location crx_location; | 48 Manifest::Location crx_location; |
49 bool install_immediately; | 49 bool install_immediately; |
50 }; | 50 }; |
51 | 51 |
52 struct ExternalInstallInfoUpdateUrl : public ExternalInstallInfo { | 52 struct ExternalInstallInfoUpdateUrl : public ExternalInstallInfo { |
53 ExternalInstallInfoUpdateUrl(const std::string& extension_id, | 53 ExternalInstallInfoUpdateUrl(const std::string& extension_id, |
54 const std::string& install_parameter, | 54 const std::string& install_parameter, |
55 scoped_ptr<GURL> update_url, | 55 std::unique_ptr<GURL> update_url, |
56 Manifest::Location download_location, | 56 Manifest::Location download_location, |
57 int creation_flags, | 57 int creation_flags, |
58 bool mark_acknowledged); | 58 bool mark_acknowledged); |
59 ~ExternalInstallInfoUpdateUrl() override; | 59 ~ExternalInstallInfoUpdateUrl() override; |
60 | 60 |
61 std::string install_parameter; | 61 std::string install_parameter; |
62 scoped_ptr<GURL> update_url; | 62 std::unique_ptr<GURL> update_url; |
63 Manifest::Location download_location; | 63 Manifest::Location download_location; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace extensions | 66 } // namespace extensions |
67 #endif // EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_ | 67 #endif // EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_ |
OLD | NEW |