Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / updater / manifest_fetch_data.h
index a9f3355..6ff3396 100644 (file)
@@ -30,8 +30,8 @@ class ManifestFetchData {
     // Ping without extra metrics.
     PING,
 
-    // Ping with extra metrics.
-    PING_WITH_METRICS,
+    // Ping with information about enabled/disabled state.
+    PING_WITH_ENABLED_STATE,
   };
 
   // Each ping type is sent at most once per day.
@@ -50,12 +50,24 @@ class ManifestFetchData {
     // server's perspective.
     int rollcall_days;
     int active_days;
-    // Wether the extension is enabled or not.
+
+    // Whether the extension is enabled or not.
     bool is_enabled;
 
-    PingData() : rollcall_days(0), active_days(0), is_enabled(true) {}
-    PingData(int rollcall, int active, bool enabled)
-        : rollcall_days(rollcall), active_days(active), is_enabled(enabled) {}
+    // A bitmask of Extension::DisableReason's, which may contain one or more
+    // reasons why an extension is disabled.
+    int disable_reasons;
+
+    PingData()
+        : rollcall_days(0),
+          active_days(0),
+          is_enabled(true),
+          disable_reasons(0) {}
+    PingData(int rollcall, int active, bool enabled, int reasons)
+        : rollcall_days(rollcall),
+          active_days(active),
+          is_enabled(enabled),
+          disable_reasons(reasons) {}
   };
 
   ManifestFetchData(const GURL& update_url,