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

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

Issue 10298002: No longer start BG mode until a BackgroundContents is loaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prospective fix for cros test failures. Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #pragma once 7 #pragma once
8 8
9 #include "content/public/browser/notification_types.h" 9 #include "content/public/browser/notification_types.h"
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 NOTIFICATION_BACKGROUND_CONTENTS_CLOSED, 193 NOTIFICATION_BACKGROUND_CONTENTS_CLOSED,
194 194
195 // The background contents is being deleted. The source is the 195 // The background contents is being deleted. The source is the
196 // parent Profile, and the details are the BackgroundContents being deleted. 196 // parent Profile, and the details are the BackgroundContents being deleted.
197 NOTIFICATION_BACKGROUND_CONTENTS_DELETED, 197 NOTIFICATION_BACKGROUND_CONTENTS_DELETED,
198 198
199 // The background contents has crashed. The source is the parent Profile, 199 // The background contents has crashed. The source is the parent Profile,
200 // and the details are the BackgroundContents. 200 // and the details are the BackgroundContents.
201 NOTIFICATION_BACKGROUND_CONTENTS_TERMINATED, 201 NOTIFICATION_BACKGROUND_CONTENTS_TERMINATED,
202 202
203 // The background contents associated with a hosted app has changed (either
204 // a new background contents has been created, or an existing background
205 // contents has closed). The source is the parent Profile, and the details
206 // are the BackgroundContentsService.
207 NOTIFICATION_BACKGROUND_CONTENTS_SERVICE_CHANGED,
208
209 // Chrome has entered/exited background mode. The source is the
210 // BackgroundModeManager and the details are a boolean value which is set to
211 // true if Chrome is now in background mode.
212 NOTIFICATION_BACKGROUND_MODE_CHANGED,
213
203 // This is sent when a login prompt is shown. The source is the 214 // This is sent when a login prompt is shown. The source is the
204 // Source<NavigationController> for the tab in which the prompt is shown. 215 // Source<NavigationController> for the tab in which the prompt is shown.
205 // Details are a LoginNotificationDetails which provide the LoginHandler 216 // Details are a LoginNotificationDetails which provide the LoginHandler
206 // that should be given authentication. 217 // that should be given authentication.
207 NOTIFICATION_AUTH_NEEDED, 218 NOTIFICATION_AUTH_NEEDED,
208 219
209 // This is sent when authentication credentials have been supplied (either 220 // This is sent when authentication credentials have been supplied (either
210 // by the user or by an automation service), but before we've actually 221 // by the user or by an automation service), but before we've actually
211 // received another response from the server. The source is the 222 // received another response from the server. The source is the
212 // Source<NavigationController> for the tab in which the prompt was shown. 223 // Source<NavigationController> for the tab in which the prompt was shown.
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 // Currently only Content and Chrome define and use notifications. 1097 // Currently only Content and Chrome define and use notifications.
1087 // Custom notifications not belonging to Content and Chrome should start 1098 // Custom notifications not belonging to Content and Chrome should start
1088 // from here. 1099 // from here.
1089 NOTIFICATION_CHROME_END, 1100 NOTIFICATION_CHROME_END,
1090 }; 1101 };
1091 1102
1092 } // namespace chrome 1103 } // namespace chrome
1093 1104
1094 1105
1095 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 1106 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698