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

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

Issue 1495403002: Observe adding external extensions via windows registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 4 years, 10 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
OLDNEW
(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_INSTALL_INFO_H_
6 #define EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_
7
8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_vector.h"
10 #include "extensions/common/manifest.h"
11
12 class GURL;
13
14 namespace base {
15 class Version;
16 }
17
18 namespace extensions {
19
20 // Holds information about an external extension install from an external
21 // provider.
22 struct ExternalInstallInfo {
23 ExternalInstallInfo(const std::string& extension_id,
24 int creation_flags,
25 bool mark_acknowledged);
26 virtual ~ExternalInstallInfo() {}
27
28 std::string extension_id;
29 int creation_flags;
30 bool mark_acknowledged;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(ExternalInstallInfo);
34 };
35
36 struct ExternalInstallInfoFile : public ExternalInstallInfo {
37 ExternalInstallInfoFile(const std::string& extension_id,
38 scoped_ptr<base::Version> version,
39 const base::FilePath& path,
40 Manifest::Location crx_location,
41 int creation_flags,
42 bool mark_acknowledged,
43 bool install_immediately);
44 ~ExternalInstallInfoFile() override;
45
46 scoped_ptr<base::Version> version;
47 base::FilePath path;
48 Manifest::Location crx_location;
49 bool install_immediately;
50 };
51
52 struct ExternalInstallInfoUpdateUrl : public ExternalInstallInfo {
53 ExternalInstallInfoUpdateUrl(const std::string& extension_id,
54 const std::string& install_parameter,
55 scoped_ptr<GURL> update_url,
56 Manifest::Location download_location,
57 int creation_flags,
58 bool mark_acknowledged);
59 ~ExternalInstallInfoUpdateUrl() override;
60
61 std::string install_parameter;
62 scoped_ptr<GURL> update_url;
63 Manifest::Location download_location;
64 };
65
66 } // namespace extensions
67 #endif // EXTENSIONS_BROWSER_EXTERNAL_INSTALL_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_registry_loader_win.cc ('k') | extensions/browser/external_install_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698