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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/external_extension_install_info.h
diff --git a/extensions/browser/external_extension_install_info.h b/extensions/browser/external_extension_install_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce25808c212813d06336b85e084e858007ba9956
--- /dev/null
+++ b/extensions/browser/external_extension_install_info.h
@@ -0,0 +1,62 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_BROWSER_EXTERNAL_EXTENSION_INSTALL_INFO_H_
+#define EXTENSIONS_BROWSER_EXTERNAL_EXTENSION_INSTALL_INFO_H_
+
+#include "base/files/file_path.h"
+#include "base/memory/scoped_vector.h"
+#include "base/version.h"
+#include "extensions/common/manifest.h"
+#include "url/gurl.h"
+
+namespace extensions {
+
+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.
+ ExternalExtensionInstallInfo(const std::string& extension_id,
+ int creation_flags,
+ bool mark_acknowledged);
+ virtual ~ExternalExtensionInstallInfo() {}
+
+ std::string extension_id;
+ int creation_flags;
+ bool mark_acknowledged;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExternalExtensionInstallInfo);
+};
+
+struct ExternalExtensionInstallInfoFile : public ExternalExtensionInstallInfo {
+ ExternalExtensionInstallInfoFile(const std::string& extension_id,
+ scoped_ptr<base::Version> version,
+ const base::FilePath& path,
+ Manifest::Location crx_location,
+ int creation_flags,
+ bool mark_acknowledged,
+ bool install_immediately);
+ ~ExternalExtensionInstallInfoFile() override;
+
+ scoped_ptr<base::Version> version;
+ base::FilePath path;
+ Manifest::Location crx_location;
+ bool install_immediately;
+};
+
+struct ExternalExtensionInstallInfoUpdateUrl
+ : public ExternalExtensionInstallInfo {
+ ExternalExtensionInstallInfoUpdateUrl(const std::string& extension_id,
+ const std::string& install_parameter,
+ scoped_ptr<GURL> update_url,
+ Manifest::Location download_location,
+ int creation_flags,
+ bool mark_acknowledged);
+ ~ExternalExtensionInstallInfoUpdateUrl() override;
+
+ std::string install_parameter;
+ scoped_ptr<GURL> update_url;
+ Manifest::Location download_location;
+};
+
+} // namespace extensions
+#endif // EXTENSIONS_BROWSER_EXTERNAL_EXTENSION_INSTALL_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698