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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/chrome_common.gypi ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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.
4
5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
7 #pragma once
8
9 #include "content/common/content_notification_types.h"
10
11 namespace chrome {
12
13 enum {
14 NOTIFICATION_CHROME_START = content::NOTIFICATION_CONTENT_END,
15
16 // Browser-window ----------------------------------------------------------
17
18 // This message is sent after a window has been opened. The source is a
19 // Source<Browser> containing the affected Browser. No details are
20 // expected.
21 NOTIFICATION_BROWSER_OPENED = NOTIFICATION_CHROME_START,
22
23 // This message is sent soon after BROWSER_OPENED, and indicates that
24 // the Browser's |window_| is now non-NULL. The source is a Source<Browser>
25 // containing the affected Browser. No details are expected.
26 NOTIFICATION_BROWSER_WINDOW_READY,
27
28 // This message is sent when a browser is closing. The source is a
29 // Source<Browser> containing the affected Browser. Details is a boolean
30 // that if true indicates that the application will be closed as a result of
31 // this browser window closure (i.e. this was the last opened browser
32 // window on win/linux). This is sent prior to BROWSER_CLOSED, and may be
33 // sent more than once for a particular browser.
34 NOTIFICATION_BROWSER_CLOSING,
35
36 // This message is sent after a window has been closed. The source is a
37 // Source<Browser> containing the affected Browser. Details is a boolean
38 // that if true indicates that the last browser window has closed - this
39 // does not indicate that the application is exiting (observers should
40 // listen for APP_TERMINATING if they want to detect when the application
41 // will shut down). Note that the boolean pointed to by details is only
42 // valid for the duration of this call.
43 NOTIFICATION_BROWSER_CLOSED,
44
45 // Indicates that a top window has been closed. The source is the HWND
46 // that was closed, no details are expected.
47 NOTIFICATION_WINDOW_CLOSED,
48
49 // Sent when an info bubble has been created but not yet shown. The source
50 // is the InfoBubble.
51 NOTIFICATION_INFO_BUBBLE_CREATED,
52
53 // Sent when the language (English, French...) for a page has been detected.
54 // The details Details<std::string> contain the ISO 639-1 language code and
55 // the source is Source<TabContents>.
56 NOTIFICATION_TAB_LANGUAGE_DETERMINED,
57
58 // Sent when a page has been translated. The source is the tab for that page
59 // (Source<TabContents>) and the details are the language the page was
60 // originally in and the language it was translated to
61 // (std::pair<std::string, std::string>).
62 NOTIFICATION_PAGE_TRANSLATED,
63
64 // Sent after the renderer returns a snapshot of tab contents.
65 // The source (Source<TabContentsWrapper>) is the RenderViewHost for which
66 // the snapshot was generated and the details (Details<const SkBitmap>) is
67 // the actual snapshot.
68 NOTIFICATION_TAB_SNAPSHOT_TAKEN,
69
70 // The user has changed the browser theme. The source is a
71 // Source<ThemeService>. There are no details.
72 NOTIFICATION_BROWSER_THEME_CHANGED,
73
74 // Sent when the renderer returns focus to the browser, as part of focus
75 // traversal. The source is the browser, there are no details.
76 NOTIFICATION_FOCUS_RETURNED_TO_BROWSER,
77
78 // Application-modal dialogs -----------------------------------------------
79
80 // Sent after an application-modal dialog has been shown. The source
81 // is the dialog.
82 NOTIFICATION_APP_MODAL_DIALOG_SHOWN,
83
84 // This message is sent when a new InfoBar has been added to a
85 // TabContentsWrapper. The source is a Source<TabContentsWrapper> with a
86 // pointer to the TabContentsWrapper the InfoBar was added to. The details
87 // is a Details<InfoBarDelegate> with a pointer to the delegate that was
88 // added.
89 NOTIFICATION_TAB_CONTENTS_INFOBAR_ADDED,
90
91 // This message is sent when an InfoBar is about to be removed from a
92 // TabContentsWrapper. The source is a Source<TabContentsWrapper> with a
93 // pointer to the TabContentsWrapper the InfoBar was removed from. The
94 // details is a Details<std::pair<InfoBarDelegate*, bool> > with a pointer
95 // to the removed delegate and whether the removal should be animated.
96 NOTIFICATION_TAB_CONTENTS_INFOBAR_REMOVED,
97
98 // This message is sent when an InfoBar is replacing another infobar in a
99 // TabContentsWrapper. The source is a Source<TabContentsWrapper> with a
100 // pointer to the TabContentsWrapper the InfoBar was removed from. The
101 // details is a Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> > with
102 // pointers to the old and new delegates, respectively.
103 NOTIFICATION_TAB_CONTENTS_INFOBAR_REPLACED,
104
105 // This is sent when an externally hosted tab is created. The details
106 // contain the ExternalTabContainer that contains the tab
107 NOTIFICATION_EXTERNAL_TAB_CREATED,
108
109 // This is sent when an externally hosted tab is closed. No details are
110 // expected.
111 NOTIFICATION_EXTERNAL_TAB_CLOSED,
112
113 // Indicates that the new page tab has finished loading. This is used for
114 // performance testing to see how fast we can load it after startup, and is
115 // only called once for the lifetime of the browser. The source is unused.
116 // Details is an integer: the number of milliseconds elapsed between
117 // starting and finishing all painting.
118 NOTIFICATION_INITIAL_NEW_TAB_UI_LOAD,
119
120 // Used to fire notifications about how long various events took to
121 // complete. E.g., this is used to get more fine grained timings from the
122 // new tab page. Details is a MetricEventDurationDetails.
123 NOTIFICATION_METRIC_EVENT_DURATION,
124
125 // This notification is sent when TabContents::SetAppExtension is invoked.
126 // The source is the ExtensionTabHelper SetAppExtension was invoked on.
127 NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED,
128
129 // Stuff inside the tabs ---------------------------------------------------
130
131 // This message is sent after a constrained window has been closed. The
132 // source is a Source<ConstrainedWindow> with a pointer to the closed child
133 // window. (The pointer isn't usable, except for identification.) No
134 // details are expected.
135 NOTIFICATION_CWINDOW_CLOSED,
136
137 // Notification from TabContents that we have received a response from the
138 // renderer in response to a dom automation controller action.
139 NOTIFICATION_DOM_OPERATION_RESPONSE,
140
141 // Sent when the bookmark bubble hides. The source is the profile, the
142 // details unused.
143 NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN,
144
145 // This notification is sent when the result of a find-in-page search is
146 // available with the browser process. The source is a Source<TabContents>
147 // with a pointer to the TabContents. Details encompass a
148 // FindNotificationDetail object that tells whether the match was found or
149 // not found.
150 NOTIFICATION_FIND_RESULT_AVAILABLE,
151
152 // This is sent when the users preference for when the bookmark bar should
153 // be shown changes. The source is the profile, and the details are
154 // NoDetails.
155 NOTIFICATION_BOOKMARK_BAR_VISIBILITY_PREF_CHANGED,
156
157 // Sent just before the installation confirm dialog is shown. The source
158 // is the ExtensionInstallUI, the details are NoDetails.
159 NOTIFICATION_EXTENSION_WILL_SHOW_CONFIRM_DIALOG,
160
161 // Used to monitor web cache usage by notifying whenever the
162 // CacheManagerHost observes new UsageStats. The source will be the
163 // RenderProcessHost that corresponds to the new statistics. Details are a
164 // UsageStats object sent by the renderer, and should be copied - ptr not
165 // guaranteed to be valid after the notification.
166 NOTIFICATION_WEB_CACHE_STATS_OBSERVED,
167
168 // BackgroundContents ------------------------------------------------------
169
170 // A new background contents was opened by script. The source is the parent
171 // profile and the details are BackgroundContentsOpenedDetails.
172 NOTIFICATION_BACKGROUND_CONTENTS_OPENED,
173
174 // The background contents navigated to a new location. The source is the
175 // parent Profile, and the details are the BackgroundContents that was
176 // navigated.
177 NOTIFICATION_BACKGROUND_CONTENTS_NAVIGATED,
178
179 // The background contents were closed by someone invoking window.close()
180 // or the parent application was uninstalled.
181 // The source is the parent profile, and the details are the
182 // BackgroundContents.
183 NOTIFICATION_BACKGROUND_CONTENTS_CLOSED,
184
185 // The background contents is being deleted. The source is the
186 // parent Profile, and the details are the BackgroundContents being deleted.
187 NOTIFICATION_BACKGROUND_CONTENTS_DELETED,
188
189 // The background contents has crashed. The source is the parent Profile,
190 // and the details are the BackgroundContents.
191 NOTIFICATION_BACKGROUND_CONTENTS_TERMINATED,
192
193 // This is sent when network interception is disabled for a plugin, or the
194 // plugin is unloaded. This should only be sent/received on the browser IO
195 // thread or the plugin thread. The source is the plugin that is disabling
196 // interception. No details are expected.
197 NOTIFICATION_CHROME_PLUGIN_UNLOADED,
198
199 // This is sent when a login prompt is shown. The source is the
200 // Source<NavigationController> for the tab in which the prompt is shown.
201 // Details are a LoginNotificationDetails which provide the LoginHandler
202 // that should be given authentication.
203 NOTIFICATION_AUTH_NEEDED,
204
205 // This is sent when authentication credentials have been supplied (either
206 // by the user or by an automation service), but before we've actually
207 // received another response from the server. The source is the
208 // Source<NavigationController> for the tab in which the prompt was shown.
209 // Details are an AuthSuppliedLoginNotificationDetails which provide the
210 // LoginHandler that should be given authentication as well as the supplied
211 // username and password.
212 NOTIFICATION_AUTH_SUPPLIED,
213
214 // This is sent when an authentication request has been dismissed without
215 // supplying credentials (either by the user or by an automation service).
216 // The source is the Source<NavigationController> for the tab in which the
217 // prompt was shown. Details are a LoginNotificationDetails which provide
218 // the LoginHandler that should be cancelled.
219 NOTIFICATION_AUTH_CANCELLED,
220
221 // Saved Pages -------------------------------------------------------------
222
223 // Sent when a SavePackage finishes successfully. The source is the
224 // SavePackage, and Details are a GURL containing address of downloaded
225 // page.
226 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED,
227
228 // History -----------------------------------------------------------------
229
230 // Sent when a history service is created on the main thread. This is sent
231 // after history is created, but before it has finished loading. Use
232 // HISTORY_LOADED is you need to know when loading has completed.
233 // The source is the profile that the history service belongs to, and the
234 // details is the pointer to the newly created HistoryService object.
235 NOTIFICATION_HISTORY_CREATED,
236
237 // Sent when a history service has finished loading. The source is the
238 // profile that the history service belongs to, and the details is the
239 // HistoryService.
240 NOTIFICATION_HISTORY_LOADED,
241
242 // Sent when a URL that has been typed has been added or modified. This is
243 // used by the in-memory URL database (used by autocomplete) to track
244 // changes to the main history system.
245 //
246 // The source is the profile owning the history service that changed, and
247 // the details is history::URLsModifiedDetails that lists the modified or
248 // added URLs.
249 NOTIFICATION_HISTORY_TYPED_URLS_MODIFIED,
250
251 // Sent when the user visits a URL.
252 //
253 // The source is the profile owning the history service that changed, and
254 // the details is history::URLVisitedDetails.
255 NOTIFICATION_HISTORY_URL_VISITED,
256
257 // Sent when one or more URLs are deleted.
258 //
259 // The source is the profile owning the history service that changed, and
260 // the details is history::URLsDeletedDetails that lists the deleted URLs.
261 NOTIFICATION_HISTORY_URLS_DELETED,
262
263 // Sent when a keyword search term is updated. The source is the Profile and
264 // the details are history::KeywordSearchTermDetails
265 NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED,
266
267 // Sent by history when the favicon of a URL changes. The source is the
268 // profile, and the details is history::FaviconChangeDetails (see
269 // history_notifications.h).
270 NOTIFICATION_FAVICON_CHANGED,
271
272 // Sent by FaviconTabHelper when a tab's favicon has been successfully
273 // updated.
274 NOTIFICATION_FAVICON_UPDATED,
275
276 // Sent after an incognito profile has been created. The details are none
277 // and the source is the new profile.
278 NOTIFICATION_OTR_PROFILE_CREATED,
279
280 // Sent before a Profile is destroyed. The details are
281 // none and the source is a Profile*.
282 NOTIFICATION_PROFILE_DESTROYED,
283
284 // TopSites ----------------------------------------------------------------
285
286 // Sent by TopSites when it finishes loading. The source is the profile the
287 // details the TopSites.
288 NOTIFICATION_TOP_SITES_LOADED,
289
290 // Sent by TopSites when it has finished updating its most visited URLs
291 // cache after querying the history service. The source is the TopSites and
292 // the details a CancelableRequestProvider::Handle from the history service
293 // query.
294 // Used only in testing.
295 NOTIFICATION_TOP_SITES_UPDATED,
296
297 // Sent by TopSites when the either one of the most visited urls changed, or
298 // one of the images changes. The source is the TopSites, the details not
299 // used.
300 NOTIFICATION_TOP_SITES_CHANGED,
301
302 // Thumbnails---------------------------------------------------------------
303
304 // Sent by the ThumbnailGenerator whenever a render widget host
305 // updates its backing store. The source is the
306 // ThumbnailGenerator, and the details are the RenderWidgetHost
307 // that notified the ThumbnailGenerator that its backing store was
308 // updated.
309 NOTIFICATION_THUMBNAIL_GENERATOR_SNAPSHOT_CHANGED,
310
311 // Bookmarks ---------------------------------------------------------------
312
313 // Sent when the starred state of a URL changes. A URL is starred if there
314 // is at least one bookmark for it. The source is a Profile and the details
315 // is history::URLsStarredDetails that contains the list of URLs and
316 // whether they were starred or unstarred.
317 NOTIFICATION_URLS_STARRED,
318
319 // Sent when the bookmark bar model finishes loading. This source is the
320 // Profile, and the details aren't used.
321 NOTIFICATION_BOOKMARK_MODEL_LOADED,
322
323 // Sent when the bookmark bubble is shown for a particular URL. The source
324 // is the profile, the details the URL.
325 NOTIFICATION_BOOKMARK_BUBBLE_SHOWN,
326
327 // Non-history storage services --------------------------------------------
328
329 // Notification that the TemplateURLService has finished loading from the
330 // database. The source is the TemplateURLService, and the details are
331 // NoDetails.
332 NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
333
334 // Sent when a TemplateURL is removed from the model. The source is the
335 // Profile, and the details the id of the TemplateURL being removed.
336 NOTIFICATION_TEMPLATE_URL_REMOVED,
337
338 // Notification triggered when a web application has been installed or
339 // uninstalled. Any application view should reload its data. The source is
340 // the profile. No details are provided.
341 NOTIFICATION_WEB_APP_INSTALL_CHANGED,
342
343 // This is sent to a pref observer when a pref is changed. The source is the
344 // PrefService and the details a std::string of the changed path.
345 NOTIFICATION_PREF_CHANGED,
346
347 // This is broadcast after the preference subsystem has completed
348 // asynchronous initalization of a PrefService.
349 NOTIFICATION_PREF_INITIALIZATION_COMPLETED,
350
351 // Sent when a default request context has been created, so calling
352 // Profile::GetDefaultRequestContext() will not return NULL. This is sent
353 // on the thread where Profile::GetRequestContext() is first called, which
354 // should be the UI thread.
355 NOTIFICATION_DEFAULT_REQUEST_CONTEXT_AVAILABLE,
356
357 // The state of a web resource has been changed. A resource may have been
358 // added, removed, or altered. Source is WebResourceService, and the
359 // details are NoDetails.
360 NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED,
361
362 // Autocomplete ------------------------------------------------------------
363
364 // Sent by the autocomplete controller when done. The source is the
365 // AutocompleteController, the details not used.
366 NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY,
367
368 // This is sent when an item of the Omnibox popup is selected. The source
369 // is the profile.
370 NOTIFICATION_OMNIBOX_OPENED_URL,
371
372 // Sent by the omnibox when it is destroyed.
373 NOTIFICATION_OMNIBOX_DESTROYED,
374
375 // Sent by the omnibox when it is focused.
376 NOTIFICATION_OMNIBOX_FOCUSED,
377
378 // Sent when the main Google URL has been updated. Some services cache
379 // this value and need to update themselves when it changes. See
380 // google_util::GetGoogleURLAndUpdateIfNecessary().
381 NOTIFICATION_GOOGLE_URL_UPDATED,
382
383 // Printing ----------------------------------------------------------------
384
385 // Notification from PrintJob that an event occurred. It can be that a page
386 // finished printing or that the print job failed. Details is
387 // PrintJob::EventDetails. Source is a PrintJob.
388 NOTIFICATION_PRINT_JOB_EVENT,
389
390 // Sent when a PrintJob has been released.
391 // Source is the TabContentsWrapper that holds the print job.
392 NOTIFICATION_PRINT_JOB_RELEASED,
393
394 // Shutdown ----------------------------------------------------------------
395
396 // Sent on the browser IO thread when an net::URLRequestContext is released
397 // by its owning Profile. The source is a pointer to the
398 // net::URLRequestContext.
399 NOTIFICATION_URL_REQUEST_CONTEXT_RELEASED,
400
401 // Sent when WM_ENDSESSION has been received, after the browsers have been
402 // closed but before browser process has been shutdown. The source/details
403 // are all source and no details.
404 NOTIFICATION_SESSION_END,
405
406 // User Scripts ------------------------------------------------------------
407
408 // Sent when there are new user scripts available. The details are a
409 // pointer to SharedMemory containing the new scripts.
410 NOTIFICATION_USER_SCRIPTS_UPDATED,
411
412 // User Style Sheet --------------------------------------------------------
413
414 // Sent when the user style sheet has changed.
415 NOTIFICATION_USER_STYLE_SHEET_UPDATED,
416
417 // Extensions --------------------------------------------------------------
418
419 // Sent when a CrxInstaller finishes. Source is the CrxInstaller that
420 // finished. No details.
421 NOTIFICATION_CRX_INSTALLER_DONE,
422
423 // Sent when the known installed extensions have all been loaded. In
424 // testing scenarios this can happen multiple times if extensions are
425 // unloaded and reloaded. The source is a Profile.
426 NOTIFICATION_EXTENSIONS_READY,
427
428 // Sent when a new extension is loaded. The details are an Extension, and
429 // the source is a Profile.
430 NOTIFICATION_EXTENSION_LOADED,
431
432 // Sent when attempting to load a new extension, but they are disabled. The
433 // details are an Extension*, and the source is a Profile*.
434 NOTIFICATION_EXTENSION_UPDATE_DISABLED,
435
436 // Sent when an extension is about to be installed so we can (in the case of
437 // themes) alert the user with a loading dialog. The source is the download
438 // manager and the details are the download url.
439 NOTIFICATION_EXTENSION_READY_FOR_INSTALL,
440
441 // Sent when an extension install turns out to not be a theme.
442 NOTIFICATION_NO_THEME_DETECTED,
443
444 // Sent when new extensions are installed. The details are an Extension, and
445 // the source is a Profile.
446 NOTIFICATION_EXTENSION_INSTALLED,
447
448 // An error occured during extension install. The details are a string with
449 // details about why the install failed.
450 NOTIFICATION_EXTENSION_INSTALL_ERROR,
451
452 // Sent when an extension install is not allowed, as indicated by
453 // PendingExtensionInfo::ShouldAllowInstall. The details are an Extension,
454 // and the source is a Profile.
455 NOTIFICATION_EXTENSION_INSTALL_NOT_ALLOWED,
456
457 // Sent when an extension has been uninstalled. The details are
458 // an UninstalledExtensionInfo struct and the source is a Profile.
459 NOTIFICATION_EXTENSION_UNINSTALLED,
460
461 // Sent when an extension uninstall is not allowed because the extension is
462 // not user manageable. The details are an Extension, and the source is a
463 // Profile.
464 NOTIFICATION_EXTENSION_UNINSTALL_NOT_ALLOWED,
465
466 // Sent when an extension is unloaded. This happens when an extension is
467 // uninstalled or disabled. The details are an UnloadedExtensionInfo, and
468 // the source is a Profile.
469 //
470 // Note that when this notification is sent, ExtensionService has already
471 // removed the extension from its internal state.
472 NOTIFICATION_EXTENSION_UNLOADED,
473
474 // Sent after a new ExtensionHost is created. The details are
475 // an ExtensionHost* and the source is an ExtensionProcessManager*.
476 NOTIFICATION_EXTENSION_HOST_CREATED,
477
478 // Sent before an ExtensionHost is destroyed. The details are
479 // an ExtensionHost* and the source is a Profile*.
480 NOTIFICATION_EXTENSION_HOST_DESTROYED,
481
482 // Sent by an ExtensionHost when it finished its initial page load.
483 // The details are an ExtensionHost* and the source is a Profile*.
484 NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING,
485
486 // Sent by an ExtensionHost when its render view requests closing through
487 // window.close(). The details are an ExtensionHost* and the source is a
488 // Profile*.
489 NOTIFICATION_EXTENSION_HOST_VIEW_SHOULD_CLOSE,
490
491 // Sent after an extension render process is created and fully functional.
492 // The details are an ExtensionHost*.
493 NOTIFICATION_EXTENSION_PROCESS_CREATED,
494
495 // Sent when extension render process ends (whether it crashes or closes).
496 // The details are an ExtensionHost* and the source is a Profile*. Not sent
497 // during browser shutdown.
498 NOTIFICATION_EXTENSION_PROCESS_TERMINATED,
499
500 // Sent when a background page is ready so other components can load.
501 NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY,
502
503 // Sent when a pop-up extension view is ready, so that notification may
504 // be sent to pending callbacks. Note that this notification is sent
505 // after all onload callbacks have been invoked in the main frame.
506 // The details is the ExtensionHost* hosted within the popup, and the source
507 // is a Profile*.
508 NOTIFICATION_EXTENSION_POPUP_VIEW_READY,
509
510 // Sent when a browser action's state has changed. The source is the
511 // ExtensionAction* that changed. There are no details.
512 NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED,
513
514 // Sent when the count of page actions has changed. Note that some of them
515 // may not apply to the current page. The source is a LocationBar*. There
516 // are no details.
517 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED,
518
519 // Sent when a browser action's visibility has changed. The source is the
520 // ExtensionPrefs* that changed. The details are a Extension*.
521 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED,
522
523 // Sent when a page action's visibility has changed. The source is the
524 // ExtensionAction* that changed. The details are a TabContents*.
525 NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED,
526
527 // Sent by an extension to notify the browser about the results of a unit
528 // test.
529 NOTIFICATION_EXTENSION_TEST_PASSED,
530 NOTIFICATION_EXTENSION_TEST_FAILED,
531
532 // Sent by extension test javascript code, typically in a browser test. The
533 // sender is a std::string representing the extension id, and the details
534 // are a std::string with some message. This is particularly useful when you
535 // want to have C++ code wait for javascript code to do something.
536 NOTIFICATION_EXTENSION_TEST_MESSAGE,
537
538 // Sent when an bookmarks extensions API function was successfully invoked.
539 // The source is the id of the extension that invoked the function, and the
540 // details are a pointer to the const BookmarksFunction in question.
541 NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED,
542
543 // Sent when an omnibox extension has sent back omnibox suggestions. The
544 // source is the profile, and the details are an ExtensionOmniboxSuggestions
545 // object.
546 NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY,
547
548 // Sent when the user accepts the input in an extension omnibox keyword
549 // session. The source is the profile.
550 NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED,
551
552 // Sent when an omnibox extension has updated the default suggestion. The
553 // source is the profile.
554 NOTIFICATION_EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED,
555
556 // Sent when an extension changes a preference value. The source is the
557 // profile, and the details are an ExtensionPrefStore::ExtensionPrefDetails
558 // object.
559 NOTIFICATION_EXTENSION_PREF_CHANGED,
560
561 // Sent when the extension updater starts checking for updates to installed
562 // extensions. The source is a Profile, and there are no details.
563 NOTIFICATION_EXTENSION_UPDATING_STARTED,
564
565 // Sent when the extension updater is finished checking for updates to
566 // installed extensions. The source is a Profile, and there are no details.
567 // NOTE: It's possible that there are extension updates still being
568 // installed by the extension service at the time this notification fires.
569 NOTIFICATION_EXTENSION_UPDATING_FINISHED,
570
571 // The extension updater found an update and will attempt to download and
572 // install it. The source is a Profile, and the details are an extension id
573 // (const std::string).
574 NOTIFICATION_EXTENSION_UPDATE_FOUND,
575
576 // An installed app changed notification state (added or removed
577 // notifications). The source is a Profile, and the details are a string
578 // with the extension id of the app.
579 NOTIFICATION_APP_NOTIFICATION_STATE_CHANGED,
580
581 // Desktop Notifications ---------------------------------------------------
582
583 // This notification is sent when a balloon is connected to a renderer
584 // process to render the balloon contents. The source is a
585 // Source<BalloonHost> with a pointer to the the balloon. A
586 // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer
587 // becomes junk. No details expected.
588 NOTIFICATION_NOTIFY_BALLOON_CONNECTED,
589
590 // This message is sent after a balloon is disconnected from the renderer
591 // process. The source is a Source<BalloonHost> with a pointer to the
592 // balloon host (the pointer is usable). No details are expected.
593 NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED,
594
595 // Web Database Service ----------------------------------------------------
596
597 // This notification is sent whenever autofill entries are
598 // changed. The detail of this notification is a list of changes
599 // represented by a vector of AutofillChange. Each change
600 // includes a change type (add, update, or remove) as well as the
601 // key of the entry that was affected.
602 NOTIFICATION_AUTOFILL_ENTRIES_CHANGED,
603
604 // Sent when an AutofillProfile has been added/removed/updated in the
605 // WebDatabase. The detail is an AutofillProfileChange.
606 NOTIFICATION_AUTOFILL_PROFILE_CHANGED,
607
608 // Sent when an Autofill CreditCard has been added/removed/updated in the
609 // WebDatabase. The detail is an AutofillCreditCardChange.
610 NOTIFICATION_AUTOFILL_CREDIT_CARD_CHANGED,
611
612 // This notification is sent whenever the web database service has finished
613 // loading the web database. No details are expected.
614 NOTIFICATION_WEB_DATABASE_LOADED,
615
616 // Upgrade notifications ---------------------------------------------------
617
618 // Sent when Chrome detects that it has been upgraded behind the scenes.
619 // NOTE: The detection mechanism is asynchronous, so this event may arrive
620 // quite some time after the upgrade actually happened. No details are
621 // expected.
622 NOTIFICATION_UPGRADE_DETECTED,
623
624 // Sent when Chrome believes an update has been installed and available for
625 // long enough with the user shutting down to let it take effect. See
626 // upgrade_detector.cc for details on how long it waits. No details are
627 // expected.
628 NOTIFICATION_UPGRADE_RECOMMENDED,
629
630 // Software incompatibility notifications ----------------------------------
631
632 // Sent when Chrome has finished compiling the list of loaded modules (and
633 // other modules of interest). No details are expected.
634 NOTIFICATION_MODULE_LIST_ENUMERATED,
635
636 // Sent when Chrome is done scanning the module list and when the user has
637 // acknowledged the module incompatibility. No details are expected.
638 NOTIFICATION_MODULE_INCOMPATIBILITY_BADGE_CHANGE,
639
640 // Accessibility Notifications ---------------------------------------------
641
642 // Notification that a window in the browser UI (not the web content)
643 // was opened, for propagating to an accessibility extension.
644 // Details will be an AccessibilityWindowInfo.
645 NOTIFICATION_ACCESSIBILITY_WINDOW_OPENED,
646
647 // Notification that a window in the browser UI was closed.
648 // Details will be an AccessibilityWindowInfo.
649 NOTIFICATION_ACCESSIBILITY_WINDOW_CLOSED,
650
651 // Notification that a control in the browser UI was focused.
652 // Details will be an AccessibilityControlInfo.
653 NOTIFICATION_ACCESSIBILITY_CONTROL_FOCUSED,
654
655 // Notification that a control in the browser UI had its action taken,
656 // like pressing a button or toggling a checkbox.
657 // Details will be an AccessibilityControlInfo.
658 NOTIFICATION_ACCESSIBILITY_CONTROL_ACTION,
659
660 // Notification that text box in the browser UI had text change.
661 // Details will be an AccessibilityControlInfo.
662 NOTIFICATION_ACCESSIBILITY_TEXT_CHANGED,
663
664 // Notification that a pop-down menu was opened, for propagating
665 // to an accessibility extension.
666 // Details will be an AccessibilityMenuInfo.
667 NOTIFICATION_ACCESSIBILITY_MENU_OPENED,
668
669 // Notification that a pop-down menu was closed, for propagating
670 // to an accessibility extension.
671 // Details will be an AccessibilityMenuInfo.
672 NOTIFICATION_ACCESSIBILITY_MENU_CLOSED,
673
674 // Content Settings --------------------------------------------------------
675
676 // Sent when content settings change. The source is a HostContentSettings
677 // object, the details are ContentSettingsNotificationsDetails.
678 NOTIFICATION_CONTENT_SETTINGS_CHANGED,
679
680 // Sent when the collect cookies dialog is shown. The source is a
681 // TabSpecificContentSettings object, there are no details.
682 NOTIFICATION_COLLECTED_COOKIES_SHOWN,
683
684 // Sent when the default setting for desktop notifications has changed.
685 // The source is the DesktopNotificationService, the details are None.
686 NOTIFICATION_DESKTOP_NOTIFICATION_DEFAULT_CHANGED,
687
688 // Sent when a non-default setting in the the notification content settings
689 // map has changed. The source is the DesktopNotificationService, the
690 // details are None.
691 NOTIFICATION_DESKTOP_NOTIFICATION_SETTINGS_CHANGED,
692
693 // Sent when the geolocation settings change. The source is the
694 // GeolocationContentSettingsMap object, the details are
695 // ContentSettingsNotificationsDetails.
696 NOTIFICATION_GEOLOCATION_SETTINGS_CHANGED,
697
698 // Sent when content settings change for a tab. The source is a TabContents
699 // object, the details are None.
700 NOTIFICATION_TAB_CONTENT_SETTINGS_CHANGED,
701
702 // Sync --------------------------------------------------------------------
703
704 // Sent when the syncer is blocked configuring.
705 NOTIFICATION_SYNC_CONFIGURE_BLOCKED,
706
707 // The sync service has started the configuration process.
708 NOTIFICATION_SYNC_CONFIGURE_START,
709
710 // The sync service is finished the configuration process.
711 NOTIFICATION_SYNC_CONFIGURE_DONE,
712
713 // The session service has been saved. This notification type is only sent
714 // if there were new SessionService commands to save, and not for no-op save
715 // operations.
716 NOTIFICATION_SESSION_SERVICE_SAVED,
717
718 // A foreign session has been updated. If a new tab page is open, the
719 // foreign session handler needs to update the new tab page's foreign
720 // session data.
721 NOTIFICATION_FOREIGN_SESSION_UPDATED,
722
723 // Foreign sessions has been disabled. New tabs should not display foreign
724 // session data.
725 NOTIFICATION_FOREIGN_SESSION_DISABLED,
726
727 // Cookies -----------------------------------------------------------------
728
729 // Sent when a cookie changes. The source is a Profile object, the details
730 // are a ChromeCookieDetails object.
731 NOTIFICATION_COOKIE_CHANGED,
732
733 // Sidebar -----------------------------------------------------------------
734
735 // Sent when the sidebar state is changed.
736 // The source is a SidebarManager instance, the details are the changed
737 // SidebarContainer object.
738 NOTIFICATION_SIDEBAR_CHANGED,
739
740 // Token Service -----------------------------------------------------------
741
742 // When the token service has a new token available for a service, one of
743 // these notifications is issued per new token.
744 // The source is a TokenService on the Profile. The details are a
745 // TokenAvailableDetails object.
746 NOTIFICATION_TOKEN_AVAILABLE,
747
748 // When there aren't any additional tokens left to load, this notification
749 // is sent.
750 // The source is a TokenService on the profile. There are no details.
751 NOTIFICATION_TOKEN_LOADING_FINISHED,
752
753 // If a token request failed, one of these is issued per failed request.
754 // The source is a TokenService on the Profile. The details are a
755 // TokenRequestFailedDetails object.
756 NOTIFICATION_TOKEN_REQUEST_FAILED,
757
758 // When a service has a new token they got from a frontend that the
759 // TokenService should know about, fire this notification. The details
760 // are a TokenAvailableDetails object.
761 NOTIFICATION_TOKEN_UPDATED,
762
763 // Sent when a user signs into Google services such as sync.
764 // The source is the Profile. The details are a GoogleServiceSignin object.
765 NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL,
766
767 // Sent when a user fails to sign into Google services such as sync.
768 // The source is the Profile. The details are a GoogleServiceAuthError
769 // object.
770 NOTIFICATION_GOOGLE_SIGNIN_FAILED,
771
772 // Autofill Notifications --------------------------------------------------
773
774 // Sent when a popup with Autofill suggestions is shown in the renderer.
775 // The source is the corresponding RenderViewHost. There are not details.
776 NOTIFICATION_AUTOFILL_DID_SHOW_SUGGESTIONS,
777
778 // Sent when a form is previewed or filled with Autofill suggestions.
779 // The source is the corresponding RenderViewHost. There are not details.
780 NOTIFICATION_AUTOFILL_DID_FILL_FORM_DATA,
781
782 // Download Notifications --------------------------------------------------
783
784 // Sent when a download is initiated. It is possible that the download will
785 // not actually begin due to the DownloadRequestLimiter cancelling it
786 // prematurely.
787 // The source is the corresponding RenderViewHost. There are no details.
788 NOTIFICATION_DOWNLOAD_INITIATED,
789
790 // Sent when a page generation to MHTML has finished.
791 // The source is the corresponding RenderViewHost. The details is a
792 // MHTMLGenerationManager::NotificationDetails.
793 NOTIFICATION_MHTML_GENERATED,
794
795 // Misc --------------------------------------------------------------------
796
797 #if defined(OS_CHROMEOS)
798 // Sent when a chromium os user logs in.
799 NOTIFICATION_LOGIN_USER_CHANGED,
800
801 // Sent when user image is updated.
802 NOTIFICATION_LOGIN_USER_IMAGE_CHANGED,
803
804 // Sent when a chromium os user attempts to log in. The source is
805 // all and the details are AuthenticationNotificationDetails.
806 NOTIFICATION_LOGIN_AUTHENTICATION,
807
808 // Sent when a panel state changed.
809 NOTIFICATION_PANEL_STATE_CHANGED,
810
811 // Sent when the window manager's layout mode has changed.
812 NOTIFICATION_LAYOUT_MODE_CHANGED,
813
814 // Sent when the wizard's content view is destroyed. The source and details
815 // are not used.
816 NOTIFICATION_WIZARD_CONTENT_VIEW_DESTROYED,
817
818 // Sent when the screen lock state has changed. The source is
819 // ScreenLocker and the details is a bool specifing that the
820 // screen is locked. When details is a false, the source object
821 // is being deleted, so the receiver shouldn't use the screen locker
822 // object.
823 NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
824
825 // Sent when the network state has changed on UI thread.
826 // The source is AllSources and the details is NetworkStateDetails defined
827 // in chrome/browser/chromeos/network_state_notifier.h.
828 // TODO(oshima): Port this to all platforms.
829 NOTIFICATION_NETWORK_STATE_CHANGED,
830
831 // Sent when an attempt to acquire the public key of the owner of a chromium
832 // os device has succeeded.
833 NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED,
834
835 // Sent when an attempt to acquire the public key of the owner of a chromium
836 // os device has failed.
837 NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_FAILED,
838
839 // Sent after UserManager checked ownership status of logged in user.
840 NOTIFICATION_OWNERSHIP_CHECKED,
841
842 // This is sent to a ChromeOS settings observer when a system setting is
843 // changed. The source is the CrosSettings and the details a std::string of
844 // the changed setting.
845 NOTIFICATION_SYSTEM_SETTING_CHANGED,
846
847 // Sent by SIM unlock dialog when it has finished with the process of
848 // updating RequirePin setting. RequirePin setting might have been changed
849 // to a new value or update might have been canceled.
850 // In either case notification is sent and details contain a bool
851 // that represents current value.
852 NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED,
853
854 // Sent by SIM unlock dialog when it has finished the EnterPin or
855 // EnterPuk dialog, either because the user cancelled, or entered a
856 // PIN or PUK.
857 NOTIFICATION_ENTER_PIN_ENDED,
858
859 #endif
860
861 #if defined(TOOLKIT_VIEWS)
862 // Sent when a bookmark's context menu is shown. Used to notify
863 // tests that the context menu has been created and shown.
864 NOTIFICATION_BOOKMARK_CONTEXT_MENU_SHOWN,
865 #endif
866
867 // Sent when the tab's closeable state has changed due to increase/decrease
868 // in number of tabs in browser or increase/decrease in number of browsers.
869 // Details<bool> contain the closeable flag while source is AllSources.
870 // This is only sent from ChromeOS's TabCloseableStateWatcher.
871 NOTIFICATION_TAB_CLOSEABLE_STATE_CHANGED,
872
873 // Sent each time the InstantController is updated.
874 NOTIFICATION_INSTANT_CONTROLLER_UPDATED,
875
876 // Sent each time the InstantController shows the InstantLoader.
877 NOTIFICATION_INSTANT_CONTROLLER_SHOWN,
878
879 // Sent when the instant loader determines whether the page supports the
880 // instant API or not. The details is a boolean indicating if the page
881 // supports instant. The source is not used.
882 NOTIFICATION_INSTANT_SUPPORT_DETERMINED,
883
884 // Password Store ----------------------------------------------------------
885 // This notification is sent whenenever login entries stored in the password
886 // store are changed. The detail of this notification is a list of changes
887 // represented by a vector of PasswordStoreChange. Each change includes a
888 // change type (ADD, UPDATE, or REMOVE) as well as the
889 // |webkit_glue::PasswordForm|s that were affected.
890 NOTIFICATION_LOGINS_CHANGED,
891
892 // Sent when the applications in the NTP app launcher have been reordered.
893 NOTIFICATION_EXTENSION_LAUNCHER_REORDERED,
894
895 #if defined(OS_CHROMEOS)
896 // Sent when WebSocketProxy started accepting connections.
897 NOTIFICATION_WEB_SOCKET_PROXY_STARTED,
898 #endif
899
900 // Sent when a new web store promo has been loaded.
901 NOTIFICATION_WEB_STORE_PROMO_LOADED,
902
903 #if defined(TOUCH_UI)
904 // Sent when an API for hiding the keyboard is invoked from JavaScript code.
905 NOTIFICATION_HIDE_KEYBOARD_INVOKED,
906
907 // Sent when an API for set height of the keyboard is invoked from
908 // JavaScript code.
909 NOTIFICATION_SET_KEYBOARD_HEIGHT_INVOKED,
910
911 // Sent when an editable element is touched, such as text box, password
912 // field, and omnibox.
913 NOTIFICATION_EDITABLE_ELEMENT_TOUCHED,
914 #endif
915
916 // Protocol Handler Registry -----------------------------------------------
917 // Sent when a ProtocolHandlerRegistry is changed.
918 NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED,
919
920 // Sent when the cached profile info has changed.
921 NOTIFICATION_PROFILE_CACHED_INFO_CHANGED,
922
923 // Note:-
924 // Currently only Content and Chrome define and use notifications.
925 // Custom notifications not belonging to Content and Chrome should start
926 // from here.
927 NOTIFICATION_CHROME_END,
928 };
929
930 } // namespace chrome
931
932
933 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698