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

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

Issue 11499012: Add policy for limiting the session length (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. SessionLengthLimiter is no longer a PKS. Created 8 years 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_COMMON_CHROME_NOTIFICATION_TYPES_H_ 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/public/browser/notification_types.h" 9 #include "content/public/browser/notification_types.h"
10 10
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 1064
1065 // Sent when high contrast mode is toggled. 1065 // Sent when high contrast mode is toggled.
1066 NOTIFICATION_CROS_ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, 1066 NOTIFICATION_CROS_ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE,
1067 1067
1068 // Sent when screen magnifier is toggled. 1068 // Sent when screen magnifier is toggled.
1069 NOTIFICATION_CROS_ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER, 1069 NOTIFICATION_CROS_ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER,
1070 1070
1071 // Sent when spoken feedback is toggled. 1071 // Sent when spoken feedback is toggled.
1072 NOTIFICATION_CROS_ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK, 1072 NOTIFICATION_CROS_ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK,
1073 1073
1074 // Sent when it is determined that no session length limit is set. Sent once
1075 // during login if no limit is set and whenever an existing limit is removed.
1076 // The source is the SessionLengthLimiter for the current user. There are no
1077 // details.
1078 NOTIFICATION_SESSION_LENGTH_UNLIMITED,
1079
1080 // Sent when a session length limit is set and the remaining session time
1081 // changes. Sent immediately when a limit comes into force and once per second
1082 // thereafter. The source is the SessionLengthLimiter for the current user.
1083 // The details are the remaining session time as a base::TimeDelta.
1084 NOTIFICATION_REMAINING_SESSION_TIME_CHANGED,
1074 #endif 1085 #endif
1075 1086
1076 #if defined(TOOLKIT_VIEWS) 1087 #if defined(TOOLKIT_VIEWS)
1077 // Sent when a bookmark's context menu is shown. Used to notify 1088 // Sent when a bookmark's context menu is shown. Used to notify
1078 // tests that the context menu has been created and shown. 1089 // tests that the context menu has been created and shown.
1079 NOTIFICATION_BOOKMARK_CONTEXT_MENU_SHOWN, 1090 NOTIFICATION_BOOKMARK_CONTEXT_MENU_SHOWN,
1080 1091
1081 // Notification that the nested loop using during tab dragging has returned. 1092 // Notification that the nested loop using during tab dragging has returned.
1082 // Used for testing. 1093 // Used for testing.
1083 NOTIFICATION_TAB_DRAG_LOOP_DONE, 1094 NOTIFICATION_TAB_DRAG_LOOP_DONE,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 // Currently only Content and Chrome define and use notifications. 1244 // Currently only Content and Chrome define and use notifications.
1234 // Custom notifications not belonging to Content and Chrome should start 1245 // Custom notifications not belonging to Content and Chrome should start
1235 // from here. 1246 // from here.
1236 NOTIFICATION_CHROME_END, 1247 NOTIFICATION_CHROME_END,
1237 }; 1248 };
1238 1249
1239 } // namespace chrome 1250 } // namespace chrome
1240 1251
1241 1252
1242 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 1253 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698