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

Side by Side Diff: chrome/common/notification_type.h

Issue 1528012: Notify all active login prompts when one login prompt is submitted. This allo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 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
« no previous file with comments | « chrome/browser/login_prompt_win.cc ('k') | net/base/auth.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COMMON_NOTIFICATION_TYPE_H_ 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_
7 7
8 // This file describes various types used to describe and filter notifications 8 // This file describes various types used to describe and filter notifications
9 // that pass through the NotificationService. 9 // that pass through the NotificationService.
10 // 10 //
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // This is sent when a login prompt is shown. The source is the 501 // This is sent when a login prompt is shown. The source is the
502 // Source<NavigationController> for the tab in which the prompt is shown. 502 // Source<NavigationController> for the tab in which the prompt is shown.
503 // Details are a LoginNotificationDetails which provide the LoginHandler 503 // Details are a LoginNotificationDetails which provide the LoginHandler
504 // that should be given authentication. 504 // that should be given authentication.
505 AUTH_NEEDED, 505 AUTH_NEEDED,
506 506
507 // This is sent when authentication credentials have been supplied (either 507 // This is sent when authentication credentials have been supplied (either
508 // by the user or by an automation service), but before we've actually 508 // by the user or by an automation service), but before we've actually
509 // received another response from the server. The source is the 509 // received another response from the server. The source is the
510 // Source<NavigationController> for the tab in which the prompt was shown. 510 // Source<NavigationController> for the tab in which the prompt was shown.
511 // No details are expected. 511 // Details are an AuthSuppliedLoginNotificationDetails which provide the
512 // LoginHandler that should be given authentication as well as the supplied
513 // username and password.
512 AUTH_SUPPLIED, 514 AUTH_SUPPLIED,
513 515
516 // This is sent when an authentication request has been dismissed without
517 // supplying credentials (either by the user or by an automation service).
518 // The source is the Source<NavigationController> for the tab in which the
519 // prompt was shown. Details are a LoginNotificationDetails which provide
520 // the LoginHandler that should be cancelled.
521 AUTH_CANCELLED,
522
514 // Saved Pages ------------------------------------------------------------- 523 // Saved Pages -------------------------------------------------------------
515 524
516 // Sent when a SavePackage finishes successfully. The source is the 525 // Sent when a SavePackage finishes successfully. The source is the
517 // SavePackage, and Details are a GURL containing address of downloaded 526 // SavePackage, and Details are a GURL containing address of downloaded
518 // page. 527 // page.
519 SAVE_PACKAGE_SUCCESSFULLY_FINISHED, 528 SAVE_PACKAGE_SUCCESSFULLY_FINISHED,
520 529
521 // History ----------------------------------------------------------------- 530 // History -----------------------------------------------------------------
522 531
523 // Sent when a history service is created on the main thread. This is sent 532 // Sent when a history service is created on the main thread. This is sent
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 }; 952 };
944 953
945 inline bool operator==(NotificationType::Type a, NotificationType b) { 954 inline bool operator==(NotificationType::Type a, NotificationType b) {
946 return a == b.value; 955 return a == b.value;
947 } 956 }
948 inline bool operator!=(NotificationType::Type a, NotificationType b) { 957 inline bool operator!=(NotificationType::Type a, NotificationType b) {
949 return a != b.value; 958 return a != b.value;
950 } 959 }
951 960
952 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 961 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/browser/login_prompt_win.cc ('k') | net/base/auth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698