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 #include "chrome/browser/ui/unload_controller_web_contents_delegate.h" |
| 6 |
| 7 #include "content/public/browser/web_contents.h" |
| 8 |
| 9 UnloadControllerWebContentsDelegate::UnloadControllerWebContentsDelegate() {} |
| 10 UnloadControllerWebContentsDelegate::~UnloadControllerWebContentsDelegate() {} |
| 11 |
| 12 bool UnloadControllerWebContentsDelegate::ShouldSuppressDialogs( |
| 13 content::WebContents* source) { |
| 14 return true; |
| 15 } |
| 16 |
| 17 void UnloadControllerWebContentsDelegate::CloseContents( |
| 18 content::WebContents* source) { |
| 19 delete source; |
| 20 } |
OLD | NEW |