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

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

Issue 20185: Adds some debugging code in hopes of isolating bug 6316. I suspect the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/browser/tab_contents/render_view_host_manager.cc ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 USER_SCRIPTS_LOADED, 522 USER_SCRIPTS_LOADED,
523 523
524 // Extensions -------------------------------------------------------------- 524 // Extensions --------------------------------------------------------------
525 525
526 // Sent when new extensions are loaded. The details are an ExtensionList*. 526 // Sent when new extensions are loaded. The details are an ExtensionList*.
527 EXTENSIONS_LOADED, 527 EXTENSIONS_LOADED,
528 528
529 // Sent when new extensions are installed. The details are a FilePath. 529 // Sent when new extensions are installed. The details are a FilePath.
530 EXTENSION_INSTALLED, 530 EXTENSION_INSTALLED,
531 531
532 // Debugging ---------------------------------------------------------------
533
534 // Sent from ~RenderViewHost. The source is the RenderViewHost.
535 RENDER_VIEW_HOST_DELETED,
536
532 // Count (must be last) ---------------------------------------------------- 537 // Count (must be last) ----------------------------------------------------
533 // Used to determine the number of notification types. Not valid as 538 // Used to determine the number of notification types. Not valid as
534 // a type parameter when registering for or posting notifications. 539 // a type parameter when registering for or posting notifications.
535 NOTIFICATION_TYPE_COUNT 540 NOTIFICATION_TYPE_COUNT
536 }; 541 };
537 542
538 NotificationType(Type v) : value(v) {} 543 NotificationType(Type v) : value(v) {}
539 544
540 bool operator==(NotificationType t) const { return value == t.value; } 545 bool operator==(NotificationType t) const { return value == t.value; }
541 bool operator!=(NotificationType t) const { return value != t.value; } 546 bool operator!=(NotificationType t) const { return value != t.value; }
542 547
543 // Comparison to explicit enum values. 548 // Comparison to explicit enum values.
544 bool operator==(Type v) const { return value == v; } 549 bool operator==(Type v) const { return value == v; }
545 bool operator!=(Type v) const { return value != v; } 550 bool operator!=(Type v) const { return value != v; }
546 551
547 Type value; 552 Type value;
548 }; 553 };
549 554
550 inline bool operator==(NotificationType::Type a, NotificationType b) { 555 inline bool operator==(NotificationType::Type a, NotificationType b) {
551 return a == b.value; 556 return a == b.value;
552 } 557 }
553 inline bool operator!=(NotificationType::Type a, NotificationType b) { 558 inline bool operator!=(NotificationType::Type a, NotificationType b) {
554 return a != b.value; 559 return a != b.value;
555 } 560 }
556 561
557 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 562 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698