[M120 Migration]Fix for crash during chrome exit
[platform/framework/web/chromium-efl.git] / chrome / browser / auth_notification_types.h
1 // Copyright 2012 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTH_NOTIFICATION_TYPES_H_
6 #define CHROME_BROWSER_AUTH_NOTIFICATION_TYPES_H_
7
8 #include "content/public/browser/notification_types.h"
9
10 // **
11 // ** NOTICE
12 // **
13 // ** The notification system is deprecated, obsolete, and is slowly being
14 // ** removed. See https://crbug.com/268984.
15 // **
16 // ** Please don't add any new notification types, and please help migrate
17 // ** existing uses of the notification types below to use the Observer and
18 // ** Callback patterns.
19 // **
20
21 namespace chrome {
22
23 enum NotificationType {
24   // This is sent when a login prompt is shown.  The source is the
25   // Source<NavigationController> for the tab in which the prompt is shown.
26   // Details are a LoginNotificationDetails which provide the LoginHandler
27   // that should be given authentication.
28   // TODO(https://crbug.com/1174785): Remove.
29   NOTIFICATION_AUTH_NEEDED = content::NOTIFICATION_CONTENT_END,
30
31   // This is sent when authentication credentials have been supplied (either
32   // by the user or by an automation service), but before we've actually
33   // received another response from the server.  The source is the
34   // Source<NavigationController> for the tab in which the prompt was shown.
35   // Details are an AuthSuppliedLoginNotificationDetails which provide the
36   // LoginHandler that should be given authentication as well as the supplied
37   // username and password.
38   // TODO(https://crbug.com/1174785): Remove.
39   NOTIFICATION_AUTH_SUPPLIED,
40
41   // This is sent when an authentication request has been dismissed without
42   // supplying credentials (either by the user or by an automation service).
43   // The source is the Source<NavigationController> for the tab in which the
44   // prompt was shown. Details are a LoginNotificationDetails which provide
45   // the LoginHandler that should be cancelled.
46   // TODO(https://crbug.com/1174785): Remove.
47   NOTIFICATION_AUTH_CANCELLED,
48 };
49
50 }  // namespace chrome
51
52 // **
53 // ** NOTICE
54 // **
55 // ** The notification system is deprecated, obsolete, and is slowly being
56 // ** removed. See https://crbug.com/268984.
57 // **
58 // ** Please don't add any new notification types, and please help migrate
59 // ** existing uses of the notification types below to use the Observer and
60 // ** Callback patterns.
61 // **
62
63 #endif  // CHROME_BROWSER_AUTH_NOTIFICATION_TYPES_H_