OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_H_ |
7 | 7 |
8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
9 | 9 |
10 class WebContentsCloseHandlerDelegate; | 10 class WebContentsCloseHandlerDelegate; |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 WebContentsCloseHandlerDelegate* delegate_; | 41 WebContentsCloseHandlerDelegate* delegate_; |
42 | 42 |
43 // If true, WillCloseAllTabs() has been invoked. | 43 // If true, WillCloseAllTabs() has been invoked. |
44 bool in_close_; | 44 bool in_close_; |
45 | 45 |
46 // Set to true if the active tab changes while closing (ActiveTabChanged() | 46 // Set to true if the active tab changes while closing (ActiveTabChanged() |
47 // was invoked following a WillCloseAllTabs()). | 47 // was invoked following a WillCloseAllTabs()). |
48 bool tab_changed_after_clone_; | 48 bool tab_changed_after_clone_; |
49 | 49 |
50 base::OneShotTimer<WebContentsCloseHandler> timer_; | 50 base::OneShotTimer timer_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(WebContentsCloseHandler); | 52 DISALLOW_COPY_AND_ASSIGN(WebContentsCloseHandler); |
53 }; | 53 }; |
54 | 54 |
55 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_H_ | 55 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_H_ |
OLD | NEW |