OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_REPOST_FORM_WARNING_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_ |
6 #define CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_ | 6 #define CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tab_contents/constrained_window.h" | 9 #include "chrome/browser/tab_contents/constrained_window.h" |
10 #include "chrome/common/notification_registrar.h" | 10 #include "chrome/common/notification_registrar.h" |
11 | 11 |
12 class NavigationController; | |
13 class TabContents; | 12 class TabContents; |
14 | 13 |
15 // This class is used to continue or cancel a pending reload when the | 14 // This class is used to continue or cancel a pending reload when the |
16 // repost form warning is shown. It is owned by the platform-dependent | 15 // repost form warning is shown. It is owned by the platform-dependent |
17 // |RepostFormWarning{Gtk,Mac,View}| classes. | 16 // |RepostFormWarning{Gtk,Mac,View}| classes. |
18 class RepostFormWarningController : public NotificationObserver { | 17 class RepostFormWarningController : public NotificationObserver { |
19 public: | 18 public: |
20 explicit RepostFormWarningController(TabContents* tab_contents); | 19 explicit RepostFormWarningController(TabContents* tab_contents); |
21 virtual ~RepostFormWarningController(); | 20 virtual ~RepostFormWarningController(); |
22 | 21 |
(...skipping 20 matching lines...) Expand all Loading... |
43 | 42 |
44 // Tab contents, used to continue the reload. | 43 // Tab contents, used to continue the reload. |
45 TabContents* tab_contents_; | 44 TabContents* tab_contents_; |
46 | 45 |
47 ConstrainedWindow* window_; | 46 ConstrainedWindow* window_; |
48 | 47 |
49 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningController); | 48 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningController); |
50 }; | 49 }; |
51 | 50 |
52 #endif // CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_ | 51 #endif // CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_ |
OLD | NEW |