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

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: Created 8 years 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..3b94c8a8043510662b2daa537f5fea82d6ad4fa6
--- /dev/null
+++ b/chrome/browser/ui/extensions/extension_enable_flow_delegate.h
@@ -0,0 +1,28 @@
+// 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 ExtensionEnableFlow;
+
+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(ExtensionEnableFlow* flow) = 0;
+
+ // Invoked when |flow| is aborted.
+ virtual void ExtensionEnableFlowAborted(ExtensionEnableFlow* flow,
benwells 2013/01/03 00:30:17 Why pass the flow back? I can see this would enabl
xiyuan 2013/01/07 18:13:12 Agreed. We should not encourage concurrent usage o
+ bool user_initiated) = 0;
+
+ protected:
+ virtual ~ExtensionEnableFlowDelegate() {}
+};
+
+#endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698