Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: extensions/browser/external_install_info.h

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/browser/extensions_test.h ('k') | extensions/browser/external_install_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « extensions/browser/extensions_test.h ('k') | extensions/browser/external_install_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698