Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: chrome/browser/ui/unload_controller_web_contents_delegate.h

Issue 2681203002: Add Browser::SkipCallBeforeUnload so that the browser windows can be closed regardless of beforeunl… (Closed)
Patch Set: comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 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.
11 : public content::WebContentsDelegate {
12 public:
13 UnloadControllerWebContentsDelegate();
14 ~UnloadControllerWebContentsDelegate() override;
15
16 // WebContentsDelegate implementation.
17 bool ShouldSuppressDialogs(content::WebContents* source) override;
18 void CloseContents(content::WebContents* source) override;
19
20 private:
21 DISALLOW_COPY_AND_ASSIGN(UnloadControllerWebContentsDelegate);
22 };
23
24 #endif // CHROME_BROWSER_UI_UNLOAD_CONTROLLER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698