OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_UNLOAD_CONTROLLER_WEB_CONTENTS_DELEGATE_H_ | |
6 #define CHROME_BROWSER_UI_UNLOAD_CONTROLLER_WEB_CONTENTS_DELEGATE_H_ | |
7 | |
8 #include "content/public/browser/web_contents_delegate.h" | |
9 | |
10 // UnloadControllerWebContentsDelegate will delete web contents when they are | |
11 // closed. It's used by UnloadController when beforeunload event is skipped so | |
12 // that the existed dialogs will be closed as well. It's used by | |
sky
2017/03/14 00:04:05
exited -> existing
zmin
2017/03/14 17:46:47
Done.
| |
13 // FastUnloadController regardless. | |
14 class UnloadControllerWebContentsDelegate | |
15 : public content::WebContentsDelegate { | |
16 public: | |
17 UnloadControllerWebContentsDelegate(); | |
18 ~UnloadControllerWebContentsDelegate() override; | |
19 | |
20 // WebContentsDelegate implementation. | |
21 bool ShouldSuppressDialogs(content::WebContents* source) override; | |
22 void CloseContents(content::WebContents* source) override; | |
23 | |
24 private: | |
25 DISALLOW_COPY_AND_ASSIGN(UnloadControllerWebContentsDelegate); | |
26 }; | |
27 | |
28 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_WEB_CONTENTS_DELEGATE_H_ | |
OLD | NEW |