1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_APP_MODAL_DIALOG_HELPER_H_
6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_APP_MODAL_DIALOG_HELPER_H_
8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h"
11 // A helper for app modal dialogs that blocks creation of pop-unders.
12 class AppModalDialogHelper
: public content::WebContentsObserver
{
14 explicit AppModalDialogHelper(content::WebContents
* dialog_host
);
15 ~AppModalDialogHelper() override
;
18 // Overridden from WebContentsObserver:
19 void WebContentsDestroyed() override
;
21 content::WebContents
* popup_
;
23 DISALLOW_COPY_AND_ASSIGN(AppModalDialogHelper
);
26 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_APP_MODAL_DIALOG_HELPER_H_