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

Side by Side Diff: chrome/browser/repost_form_warning_controller.h

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « chrome/browser/renderer_preferences_util.cc ('k') | chrome/browser/resources_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
9 #include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h" 10 #include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
10 #include "content/public/browser/web_contents_observer.h" 11 #include "content/public/browser/web_contents_observer.h"
11 12
12 // This class is used to continue or cancel a pending reload when the 13 // This class is used to continue or cancel a pending reload when the
13 // repost form warning is shown. It is owned by the platform-specific 14 // repost form warning is shown. It is owned by the platform-specific
14 // |TabModalConfirmDialog{Gtk, Mac, Views, WebUI}| classes. 15 // |TabModalConfirmDialog{Gtk, Mac, Views, WebUI}| classes.
15 class RepostFormWarningController : public TabModalConfirmDialogDelegate, 16 class RepostFormWarningController : public TabModalConfirmDialogDelegate,
16 public content::WebContentsObserver { 17 public content::WebContentsObserver {
17 public: 18 public:
18 explicit RepostFormWarningController(content::WebContents* web_contents); 19 explicit RepostFormWarningController(content::WebContents* web_contents);
19 ~RepostFormWarningController() override; 20 ~RepostFormWarningController() override;
20 21
21 private: 22 private:
22 // TabModalConfirmDialogDelegate methods: 23 // TabModalConfirmDialogDelegate methods:
23 base::string16 GetTitle() override; 24 base::string16 GetTitle() override;
24 base::string16 GetDialogMessage() override; 25 base::string16 GetDialogMessage() override;
25 base::string16 GetAcceptButtonTitle() override; 26 base::string16 GetAcceptButtonTitle() override;
26 void OnAccepted() override; 27 void OnAccepted() override;
27 void OnCanceled() override; 28 void OnCanceled() override;
28 void OnClosed() override; 29 void OnClosed() override;
29 30
30 // content::WebContentsObserver methods: 31 // content::WebContentsObserver methods:
31 void BeforeFormRepostWarningShow() override; 32 void BeforeFormRepostWarningShow() override;
32 33
33 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningController); 34 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningController);
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_ 37 #endif // CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_preferences_util.cc ('k') | chrome/browser/resources_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698