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

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

Issue 5172009: This adds some plumbing for propagating the reason for a renderer's death (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming PROCESS_END_* to EXIT_CODE_* Created 10 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // ephemeral task; register for AllSources() to receive this notification. 541 // ephemeral task; register for AllSources() to receive this notification.
542 // The details are in a Details<ChildProcessInfo>. 542 // The details are in a Details<ChildProcessInfo>.
543 CHILD_PROCESS_HOST_CONNECTED, 543 CHILD_PROCESS_HOST_CONNECTED,
544 544
545 // This message is sent after a ChildProcessHost is disconnected from the 545 // This message is sent after a ChildProcessHost is disconnected from the
546 // child process. There is no usable source, since it is sent from an 546 // child process. There is no usable source, since it is sent from an
547 // ephemeral task; register for AllSources() to receive this notification. 547 // ephemeral task; register for AllSources() to receive this notification.
548 // The details are in a Details<ChildProcessInfo>. 548 // The details are in a Details<ChildProcessInfo>.
549 CHILD_PROCESS_HOST_DISCONNECTED, 549 CHILD_PROCESS_HOST_DISCONNECTED,
550 550
551 // This message is sent when a child process disappears unexpectedly. 551 // This message is sent when a child process disappears
552 // There is no usable source, since it is sent from an ephemeral task; 552 // unexpectedly as a result of a crash. There is no usable
553 // register for AllSources() to receive this notification. The details are 553 // source, since it is sent from an ephemeral task; register for
554 // in a Details<ChildProcessInfo>. 554 // AllSources() to receive this notification. The details are in
555 // a Details<ChildProcessInfo>.
555 CHILD_PROCESS_CRASHED, 556 CHILD_PROCESS_CRASHED,
556 557
558 // This message is sent when a child process disappears
559 // unexpectedly as a result of a termination signal. There is no
560 // usable source, since it is sent from an ephemeral task;
561 // register for AllSources() to receive this notification. The
562 // details are in a Details<ChildProcessInfo>.
563 CHILD_PROCESS_WAS_KILLED,
564
557 // This message indicates that an instance of a particular child was 565 // This message indicates that an instance of a particular child was
558 // created in a page. (If one page contains several regions rendered by 566 // created in a page. (If one page contains several regions rendered by
559 // the same child, this notification will occur once for each region 567 // the same child, this notification will occur once for each region
560 // during the page load.) 568 // during the page load.)
561 // 569 //
562 // There is no usable source, since it is sent from an ephemeral task; 570 // There is no usable source, since it is sent from an ephemeral task;
563 // register for AllSources() to receive this notification. The details are 571 // register for AllSources() to receive this notification. The details are
564 // in a Details<ChildProcessInfo>. 572 // in a Details<ChildProcessInfo>.
565 CHILD_INSTANCE_CREATED, 573 CHILD_INSTANCE_CREATED,
566 574
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 }; 1326 };
1319 1327
1320 inline bool operator==(NotificationType::Type a, NotificationType b) { 1328 inline bool operator==(NotificationType::Type a, NotificationType b) {
1321 return a == b.value; 1329 return a == b.value;
1322 } 1330 }
1323 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1331 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1324 return a != b.value; 1332 return a != b.value;
1325 } 1333 }
1326 1334
1327 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 1335 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698