Chromium Code Reviews| 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_ |