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

Side by Side Diff: extensions/browser/external_extension_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: add missing files Created 4 years, 11 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698