Home | History | Annotate | Download | only in performance_monitor
      1 // Copyright 2013 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_BROWSER_PERFORMANCE_MONITOR_EVENT_TYPE_H_
      6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_EVENT_TYPE_H_
      7 
      8 namespace performance_monitor {
      9 
     10 // IMPORTANT: To add new events, please
     11 // - Place the new event above EVENT_NUMBER_OF_EVENTS.
     12 // - Add a member to the EventKeyChar enum in key_builder.cc.
     13 // - Add the appropriate messages in generated_resources.grd.
     14 // - Add the appropriate functions in
     15 //   chrome/browser/ui/webui/performance_monitor/performance_monitor_l10n.h.
     16 enum EventType {
     17   EVENT_UNDEFINED,
     18 
     19   // Extension-Related events
     20   EVENT_EXTENSION_INSTALL,
     21   EVENT_EXTENSION_UNINSTALL,
     22   EVENT_EXTENSION_UPDATE,
     23   EVENT_EXTENSION_ENABLE,
     24   EVENT_EXTENSION_DISABLE,
     25 
     26   // Chrome's version has changed.
     27   EVENT_CHROME_UPDATE,
     28 
     29   // Renderer-Failure related events; these correspond to the RENDERER_HANG
     30   // event, and the two termination statuses ABNORMAL_EXIT and PROCESS_KILLED,
     31   // respectively.
     32   EVENT_RENDERER_HANG,
     33   EVENT_RENDERER_CRASH,
     34   EVENT_RENDERER_KILLED,
     35 
     36   // Chrome did not shut down correctly.
     37   EVENT_UNCLEAN_EXIT,
     38 
     39   EVENT_NUMBER_OF_EVENTS
     40 };
     41 
     42 }  // namespace performance_monitor
     43 
     44 #endif  // CHROME_BROWSER_PERFORMANCE_MONITOR_EVENT_TYPE_H_
     45