
This is a mechanical change. There are a few instances of empty user-defined constructors and destructors left in the /chrome code which can be defaulted. This CL was uploaded by git cl split. Bug: 381119547 Change-Id: Id7f45032e9f6c7ac6e1786517a5e25d2d51d6b90 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6048285 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Sorin Jianu <sorin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1392583}
58 lines
1.8 KiB
C++
58 lines
1.8 KiB
C++
// Copyright 2012 The Chromium Authors
|
|
// 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_H_
|
|
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_
|
|
|
|
namespace content {
|
|
class BrowserContext;
|
|
}
|
|
|
|
namespace extensions {
|
|
|
|
class ExtensionSet;
|
|
|
|
// This class encapsulates the UI we want to show users when certain events
|
|
// occur related to installed extensions.
|
|
class ExtensionErrorUI {
|
|
public:
|
|
class Delegate {
|
|
public:
|
|
// Get the BrowserContext associated with this UI.
|
|
virtual content::BrowserContext* GetContext() = 0;
|
|
|
|
// Get the set of blocklisted extensions to warn the user about.
|
|
virtual const ExtensionSet& GetBlocklistedExtensions() = 0;
|
|
|
|
// Handle the user clicking to get more details on the extension alert.
|
|
virtual void OnAlertDetails() = 0;
|
|
|
|
// Handle the user clicking "accept" on the extension alert.
|
|
virtual void OnAlertAccept() = 0;
|
|
|
|
// Handle the alert closing.
|
|
virtual void OnAlertClosed() = 0;
|
|
};
|
|
|
|
// Shows the installation error in a bubble view. Should return true if a
|
|
// bubble is shown, false if one could not be shown.
|
|
virtual bool ShowErrorInBubbleView() = 0;
|
|
|
|
// Shows the extension page. Called as a result of the user clicking more
|
|
// info and should be only called from the context of a callback
|
|
// (BubbleViewDidClose or BubbleViewAccept/CancelButtonPressed).
|
|
// It should use the same browser as where the bubble was shown.
|
|
virtual void ShowExtensions() = 0;
|
|
|
|
// Closes the error UI. This will end up calling BubbleViewDidClose, possibly
|
|
// synchronously.
|
|
virtual void Close() = 0;
|
|
|
|
virtual ~ExtensionErrorUI() = default;
|
|
};
|
|
|
|
} // namespace extensions
|
|
|
|
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_
|