OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the | 368 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the |
369 // Value the results of the javascript expression. The Value is owned by | 369 // Value the results of the javascript expression. The Value is owned by |
370 // RenderViewHost and may be a Null Value. | 370 // RenderViewHost and may be a Null Value. |
371 NOTIFICATION_EXECUTE_JAVASCRIPT_RESULT, | 371 NOTIFICATION_EXECUTE_JAVASCRIPT_RESULT, |
372 | 372 |
373 // Child Processes --------------------------------------------------------- | 373 // Child Processes --------------------------------------------------------- |
374 | 374 |
375 // This notification is sent when a child process host has connected to a | 375 // This notification is sent when a child process host has connected to a |
376 // child process. There is no usable source, since it is sent from an | 376 // child process. There is no usable source, since it is sent from an |
377 // ephemeral task; register for AllSources() to receive this notification. | 377 // ephemeral task; register for AllSources() to receive this notification. |
378 // The details are in a Details<ChildProcessInfo>. | 378 // The details are in a Details<content::ChildProcessData>. |
379 NOTIFICATION_CHILD_PROCESS_HOST_CONNECTED, | 379 NOTIFICATION_CHILD_PROCESS_HOST_CONNECTED, |
380 | 380 |
381 // This message is sent after a ChildProcessHost is disconnected from the | 381 // This message is sent after a ChildProcessHost is disconnected from the |
382 // child process. There is no usable source, since it is sent from an | 382 // child process. There is no usable source, since it is sent from an |
383 // ephemeral task; register for AllSources() to receive this notification. | 383 // ephemeral task; register for AllSources() to receive this notification. |
384 // The details are in a Details<ChildProcessInfo>. | 384 // The details are in a Details<content::ChildProcessData>. |
385 NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED, | 385 NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED, |
386 | 386 |
387 // This message is sent when a child process disappears | 387 // This message is sent when a child process disappears |
388 // unexpectedly as a result of a crash. There is no usable | 388 // unexpectedly as a result of a crash. There is no usable |
389 // source, since it is sent from an ephemeral task; register for | 389 // source, since it is sent from an ephemeral task; register for |
390 // AllSources() to receive this notification. The details are in | 390 // AllSources() to receive this notification. The details are in |
391 // a Details<ChildProcessInfo>. | 391 // a Details<content::ChildProcessData>. |
392 NOTIFICATION_CHILD_PROCESS_CRASHED, | 392 NOTIFICATION_CHILD_PROCESS_CRASHED, |
393 | 393 |
394 // This message is sent when a child process disappears | 394 // This message is sent when a child process disappears |
395 // unexpectedly as a result of a termination signal. There is no | 395 // unexpectedly as a result of a termination signal. There is no |
396 // usable source, since it is sent from an ephemeral task; | 396 // usable source, since it is sent from an ephemeral task; |
397 // register for AllSources() to receive this notification. The | 397 // register for AllSources() to receive this notification. The |
398 // details are in a Details<ChildProcessInfo>. | 398 // details are in a Details<content::ChildProcessData>. |
399 NOTIFICATION_CHILD_PROCESS_WAS_KILLED, | 399 NOTIFICATION_CHILD_PROCESS_WAS_KILLED, |
400 | 400 |
401 // This message indicates that an instance of a particular child was | 401 // This message indicates that an instance of a particular child was |
402 // created in a page. (If one page contains several regions rendered by | 402 // created in a page. (If one page contains several regions rendered by |
403 // the same child, this notification will occur once for each region | 403 // the same child, this notification will occur once for each region |
404 // during the page load.) | 404 // during the page load.) |
405 // | 405 // |
406 // There is no usable source, since it is sent from an ephemeral task; | 406 // There is no usable source, since it is sent from an ephemeral task; |
407 // register for AllSources() to receive this notification. The details are | 407 // register for AllSources() to receive this notification. The details are |
408 // in a Details<ChildProcessInfo>. | 408 // in a Details<content::ChildProcessData>. |
409 NOTIFICATION_CHILD_INSTANCE_CREATED, | 409 NOTIFICATION_CHILD_INSTANCE_CREATED, |
410 | 410 |
411 // Saved Pages ------------------------------------------------------------- | 411 // Saved Pages ------------------------------------------------------------- |
412 | 412 |
413 // Sent when a SavePackage finishes successfully. The source is the | 413 // Sent when a SavePackage finishes successfully. The source is the |
414 // SavePackage, and Details are a GURL containing address of downloaded | 414 // SavePackage, and Details are a GURL containing address of downloaded |
415 // page. | 415 // page. |
416 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, | 416 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, |
417 | 417 |
418 // Purge Memory ------------------------------------------------------------ | 418 // Purge Memory ------------------------------------------------------------ |
(...skipping 11 matching lines...) Expand all Loading... |
430 // of a temporary zoom level change, the details is an empty string. | 430 // of a temporary zoom level change, the details is an empty string. |
431 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 431 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
432 | 432 |
433 // Custom notifications used by the embedder should start from here. | 433 // Custom notifications used by the embedder should start from here. |
434 NOTIFICATION_CONTENT_END, | 434 NOTIFICATION_CONTENT_END, |
435 }; | 435 }; |
436 | 436 |
437 } // namespace content | 437 } // namespace content |
438 | 438 |
439 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 439 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |