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

Side by Side Diff: chrome/browser/views/repost_form_warning_view.h

Issue 20066: Move resource_message_filter and resource_request_details to the renderer_hos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/browser/repost_form_warning_dialog.h:r69-2775
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_H_ 5 #ifndef CHROME_BROWSER_VIEWS_REPOST_FORM_WARNING_VIEW_H_
6 #define CHROME_BROWSER_REPOST_FORM_WARNING_H_ 6 #define CHROME_BROWSER_VIEWS_REPOST_FORM_WARNING_VIEW_H_
7 7
8 #include "chrome/common/notification_observer.h" 8 #include "chrome/common/notification_observer.h"
9 #include "chrome/views/dialog_delegate.h" 9 #include "chrome/views/dialog_delegate.h"
10 10
11 class MessageBoxView; 11 class MessageBoxView;
12 class NavigationController; 12 class NavigationController;
13 namespace views { 13 namespace views {
14 class Window; 14 class Window;
15 } 15 }
16 16
17 class RepostFormWarningDialog : public views::DialogDelegate, 17 class RepostFormWarningView : public views::DialogDelegate,
18 public NotificationObserver { 18 public NotificationObserver {
19 public: 19 public:
20 // Creates and runs a message box which asks the user if they want to resend 20 // Use RunRepostFormWarningDialog (declared in repost_form_warning.h) to use.
21 // an HTTP POST. 21 RepostFormWarningView(NavigationController* navigation_controller);
22 static void RunRepostFormWarningDialog( 22 virtual ~RepostFormWarningView();
23 NavigationController* navigation_controller);
24 virtual ~RepostFormWarningDialog();
25 23
26 // views::DialogDelegate Methods: 24 // views::DialogDelegate Methods:
27 virtual std::wstring GetWindowTitle() const; 25 virtual std::wstring GetWindowTitle() const;
28 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; 26 virtual std::wstring GetDialogButtonLabel(DialogButton button) const;
29 virtual void WindowClosing(); 27 virtual void WindowClosing();
30 virtual bool Cancel(); 28 virtual bool Cancel();
31 virtual bool Accept(); 29 virtual bool Accept();
32 30
33 // views::WindowDelegate Methods: 31 // views::WindowDelegate Methods:
34 virtual bool IsModal() const { return true; } 32 virtual bool IsModal() const { return true; }
35 virtual views::View* GetContentsView(); 33 virtual views::View* GetContentsView();
36 34
37 private: 35 private:
38 // Use RunRepostFormWarningDialog to use.
39 RepostFormWarningDialog(NavigationController* navigation_controller);
40 36
41 // NotificationObserver implementation. 37 // NotificationObserver implementation.
42 // Watch for a new load or a closed tab and dismiss the dialog if they occur. 38 // Watch for a new load or a closed tab and dismiss the dialog if they occur.
43 virtual void Observe(NotificationType type, 39 virtual void Observe(NotificationType type,
44 const NotificationSource& source, 40 const NotificationSource& source,
45 const NotificationDetails& details); 41 const NotificationDetails& details);
46 42
47 // The message box view whose commands we handle. 43 // The message box view whose commands we handle.
48 MessageBoxView* message_box_view_; 44 MessageBoxView* message_box_view_;
49 45
50 // Navigation controller, used to continue the reload. 46 // Navigation controller, used to continue the reload.
51 NavigationController* navigation_controller_; 47 NavigationController* navigation_controller_;
52 48
53 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningDialog); 49 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningView);
54 }; 50 };
55 51
56 #endif // CHROME_BROWSER_REPOST_FORM_WARNING_H_ 52 #endif // CHROME_BROWSER_VIEWS_REPOST_FORM_WARNING_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698