Chromium Code Reviews| Index: chrome/browser/ui/unload_controller_web_contents_delegate.h |
| diff --git a/chrome/browser/ui/unload_controller_web_contents_delegate.h b/chrome/browser/ui/unload_controller_web_contents_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1d42bd0b752908cc8c9d1dc965791a4d6262e869 |
| --- /dev/null |
| +++ b/chrome/browser/ui/unload_controller_web_contents_delegate.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2017 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_UNLOAD_CONTROLLER_WEB_CONTENTS_DELEGATE_H_ |
| +#define CHROME_BROWSER_UI_UNLOAD_CONTROLLER_WEB_CONTENTS_DELEGATE_H_ |
| + |
| +#include "content/public/browser/web_contents_delegate.h" |
| + |
| +class UnloadControllerWebContentsDelegate |
|
Charlie Reis
2017/02/27 21:47:51
Please include a class comment saying what the pur
zmin
2017/03/06 23:58:08
Done.
|
| + : public content::WebContentsDelegate { |
| + public: |
| + UnloadControllerWebContentsDelegate(); |
| + ~UnloadControllerWebContentsDelegate() override; |
| + |
| + // WebContentsDelegate implementation. |
| + bool ShouldSuppressDialogs(content::WebContents* source) override; |
| + void CloseContents(content::WebContents* source) override; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(UnloadControllerWebContentsDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_WEB_CONTENTS_DELEGATE_H_ |