text: // 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_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_
  #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_
  
  #include <memory>
  
  #include "base/macros.h"
  #include "chrome/browser/extensions/extension_error_ui.h"
  #include "chrome/browser/ui/global_error/global_error.h"
  
  class Browser;
  class Profile;
  
  namespace extensions {
  
  class ExtensionGlobalError;
  
  class ExtensionErrorUIDefault : public ExtensionErrorUI {
   public:
    explicit ExtensionErrorUIDefault(ExtensionErrorUI::Delegate* delegate);
    ~ExtensionErrorUIDefault() override;
  
    bool ShowErrorInBubbleView() override;
    void ShowExtensions() override;
    void Close() override;
  
    GlobalErrorWithStandardBubble* GetErrorForTesting();
  
   private:
    // The profile associated with this error.
    Profile* profile_ = nullptr;
  
    // The browser the bubble view was shown into.
    Browser* browser_ = nullptr;
  
    std::unique_ptr<ExtensionGlobalError> global_error_;
  
    DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUIDefault);
  };
  
  }  // namespace extensions
  
  #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_
  