// Copyright 2017 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_UI_VIEWS_PASSWORDS_PASSWORD_BUBBLE_VIEW_BASE_H_ #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_PASSWORD_BUBBLE_VIEW_BASE_H_ #include "build/build_config.h" #include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h" #include "ui/base/metadata/metadata_header_macros.h" namespace content { class WebContents; } class Browser; class PasswordBubbleControllerBase; // Base class for all manage-passwords bubbles. Provides static methods for // creating and showing these dialogs. Also used to access the web contents // related to the dialog. // These bubbles remove themselves as globals on destruction. // TODO(pbos): Remove static global usage and move dialog ownership to // TabDialog instances. Consider removing access to GetWebContents() through // this class when ownership has moved to TabDialog instances, as it's hopefully // no longer relevant for checking dialog ownership. These two work items should // make this base class significantly smaller. class PasswordBubbleViewBase : public LocationBarBubbleDelegateView { … }; #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_PASSWORD_BUBBLE_VIEW_BASE_H_