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

Side by Side Diff: extensions/browser/extension_dialog_auto_confirm.h

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
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 | « extensions/browser/event_router_unittest.cc ('k') | extensions/browser/extension_error.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 EXTENSIONS_BROWSER_EXTENSION_DIALOG_AUTO_CONFIRM_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_DIALOG_AUTO_CONFIRM_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_DIALOG_AUTO_CONFIRM_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_DIALOG_AUTO_CONFIRM_H_
7 7
8 #include "base/auto_reset.h" 8 #include "base/auto_reset.h"
9 #include "base/macros.h"
9 10
10 namespace extensions { 11 namespace extensions {
11 12
12 class ScopedTestDialogAutoConfirm { 13 class ScopedTestDialogAutoConfirm {
13 public: 14 public:
14 enum AutoConfirm { 15 enum AutoConfirm {
15 NONE, // The prompt will show normally. 16 NONE, // The prompt will show normally.
16 ACCEPT, // The prompt will always accept. 17 ACCEPT, // The prompt will always accept.
17 CANCEL, // The prompt will always cancel. 18 CANCEL, // The prompt will always cancel.
18 }; 19 };
19 20
20 explicit ScopedTestDialogAutoConfirm(AutoConfirm override_value); 21 explicit ScopedTestDialogAutoConfirm(AutoConfirm override_value);
21 ~ScopedTestDialogAutoConfirm(); 22 ~ScopedTestDialogAutoConfirm();
22 23
23 static AutoConfirm GetAutoConfirmValue(); 24 static AutoConfirm GetAutoConfirmValue();
24 25
25 private: 26 private:
26 AutoConfirm old_value_; 27 AutoConfirm old_value_;
27 28
28 DISALLOW_COPY_AND_ASSIGN(ScopedTestDialogAutoConfirm); 29 DISALLOW_COPY_AND_ASSIGN(ScopedTestDialogAutoConfirm);
29 }; 30 };
30 31
31 } // namespace extensions 32 } // namespace extensions
32 33
33 #endif // EXTENSIONS_BROWSER_EXTENSION_DIALOG_AUTO_CONFIRM_H_ 34 #endif // EXTENSIONS_BROWSER_EXTENSION_DIALOG_AUTO_CONFIRM_H_
OLDNEW
« no previous file with comments | « extensions/browser/event_router_unittest.cc ('k') | extensions/browser/extension_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698