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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_H_
6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_H_
8 class PrefRegistrySimple
;
10 namespace confirm_quit
{
12 enum ConfirmQuitMetric
{
13 // The user quit without having the feature enabled.
15 // The user held Cmd+Q for the entire duration.
17 // The user hit Cmd+Q twice for the accelerated path.
19 // The user tapped Cmd+Q once and then held it.
25 // Records the histogram value for the above metric.
26 void RecordHistogram(ConfirmQuitMetric sample
);
28 // Registers the preference in app-wide local state.
29 void RegisterLocalState(PrefRegistrySimple
* registry
);
31 } // namespace confirm_quit
33 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_H_