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

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

Issue 397031: Launch processes asynchronously so as not to block the UI thread. For now, re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: return 0 instead of -1 if zygote couldn't launch renderer Created 11 years, 1 month 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.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 // This file describes various types used to describe and filter notifications 8 // This file describes various types used to describe and filter notifications
9 // that pass through the NotificationService. 9 // that pass through the NotificationService.
10 // 10 //
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 RENDER_VIEW_HOST_CREATED_FOR_TAB, 339 RENDER_VIEW_HOST_CREATED_FOR_TAB,
340 340
341 // Stuff inside the tabs --------------------------------------------------- 341 // Stuff inside the tabs ---------------------------------------------------
342 342
343 // This message is sent after a constrained window has been closed. The 343 // This message is sent after a constrained window has been closed. The
344 // source is a Source<ConstrainedWindow> with a pointer to the closed child 344 // source is a Source<ConstrainedWindow> with a pointer to the closed child
345 // window. (The pointer isn't usable, except for identification.) No 345 // window. (The pointer isn't usable, except for identification.) No
346 // details are expected. 346 // details are expected.
347 CWINDOW_CLOSED, 347 CWINDOW_CLOSED,
348 348
349 // Indicates that a RenderProcessHost was created and its handle is now
350 // available. The source will be the RenderProcessHost that corresponds to
351 // the process.
352 RENDERER_PROCESS_CREATED,
353
349 // Indicates that a RenderProcessHost is destructing. The source will be the 354 // Indicates that a RenderProcessHost is destructing. The source will be the
350 // RenderProcessHost that corresponds to the process. 355 // RenderProcessHost that corresponds to the process.
351 RENDERER_PROCESS_TERMINATED, 356 RENDERER_PROCESS_TERMINATED,
352 357
353 // Indicates that a render process was closed (meaning it exited, but the 358 // Indicates that a render process was closed (meaning it exited, but the
354 // RenderProcessHost might be reused). The source will be the corresponding 359 // RenderProcessHost might be reused). The source will be the corresponding
355 // RenderProcessHost. The details will be a bool which is true if the 360 // RenderProcessHost. The details will be a bool which is true if the
356 // process crashed. This may get sent along with 361 // process crashed. This may get sent along with
357 // RENDERER_PROCESS_TERMINATED. 362 // RENDERER_PROCESS_TERMINATED.
358 RENDERER_PROCESS_CLOSED, 363 RENDERER_PROCESS_CLOSED,
359 364
360 // Indicates that a render process has become unresponsive for a period of 365 // Indicates that a render process has become unresponsive for a period of
361 // time. The source will be the RenderWidgetHost that corresponds to the 366 // time. The source will be the RenderWidgetHost that corresponds to the
362 // hung view, and no details are expected. 367 // hung view, and no details are expected.
363 RENDERER_PROCESS_HANG, 368 RENDERER_PROCESS_HANG,
364 369
365 // This is sent to notify that the RenderViewHost displayed in a 370 // This is sent to notify that the RenderViewHost displayed in a
366 // TabContents has changed. Source is the TabContents for which the change 371 // TabContents has changed. Source is the TabContents for which the change
367 // happened, details is the previous RenderViewHost (can be NULL when the 372 // happened, details is the previous RenderViewHost (can be NULL when the
368 // first RenderViewHost is set). 373 // first RenderViewHost is set).
369 RENDER_VIEW_HOST_CHANGED, 374 RENDER_VIEW_HOST_CHANGED,
370 375
371 // This is sent when a RenderWidgetHost is being destroyed. The source is 376 // This is sent when a RenderWidgetHost is being destroyed. The source is
372 // the RenderWidgetHost, the details are not used. 377 // the RenderWidgetHost, the details are not used.
373 RENDER_WIDGET_HOST_DESTROYED, 378 RENDER_WIDGET_HOST_DESTROYED,
374 379
375 // Sent from ~RenderViewHost. The source is the RenderViewHost. 380 // Sent from ~RenderViewHost. The source is the TabContents.
376 RENDER_VIEW_HOST_DELETED, 381 RENDER_VIEW_HOST_DELETED,
377 382
378 // Indicates a RenderWidgetHost has been hidden or restored. The source is 383 // Indicates a RenderWidgetHost has been hidden or restored. The source is
379 // the RWH whose visibility changed, the details is a bool set to true if 384 // the RWH whose visibility changed, the details is a bool set to true if
380 // the new state is "visible." 385 // the new state is "visible."
381 RENDER_WIDGET_VISIBILITY_CHANGED, 386 RENDER_WIDGET_VISIBILITY_CHANGED,
382 387
383 // Notification from TabContents that we have received a response from the 388 // Notification from TabContents that we have received a response from the
384 // renderer in response to a dom automation controller action. 389 // renderer in response to a dom automation controller action.
385 DOM_OPERATION_RESPONSE, 390 DOM_OPERATION_RESPONSE,
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 }; 793 };
789 794
790 inline bool operator==(NotificationType::Type a, NotificationType b) { 795 inline bool operator==(NotificationType::Type a, NotificationType b) {
791 return a == b.value; 796 return a == b.value;
792 } 797 }
793 inline bool operator!=(NotificationType::Type a, NotificationType b) { 798 inline bool operator!=(NotificationType::Type a, NotificationType b) {
794 return a != b.value; 799 return a != b.value;
795 } 800 }
796 801
797 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 802 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698