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

Unified Diff: chrome/browser/ui/extensions/extension_enable_flow_delegate.h

Issue 11644077: Put extension enable logic into a ExtensionEnableFlow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + address comments in #1 Created 7 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: chrome/browser/ui/extensions/extension_enable_flow_delegate.h
diff --git a/chrome/browser/ui/extensions/extension_enable_flow_delegate.h b/chrome/browser/ui/extensions/extension_enable_flow_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..cdbfc9d9155e839503c556e00c3a5d349a0ef831
--- /dev/null
+++ b/chrome/browser/ui/extensions/extension_enable_flow_delegate.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_DELEGATE_H_
+#define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_DELEGATE_H_
+
+class ExtensionInstallPrompt;
+
+class ExtensionEnableFlowDelegate {
+ public:
+ // Invoked to create an ExtensionInstallPrompt for the flow to use. Caller
+ // takes ownership of the return ExtensionInstallPrompt;
+ virtual ExtensionInstallPrompt* CreateExtensionInstallPrompt() = 0;
+
+ // Invoked when |flow| is finished successfully.
+ virtual void ExtensionEnableFlowFinished() = 0;
+
+ // Invoked when |flow| is aborted.
+ virtual void ExtensionEnableFlowAborted(bool user_initiated) = 0;
+
+ protected:
+ virtual ~ExtensionEnableFlowDelegate() {}
+};
+
+#endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/extensions/extension_enable_flow.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698