1 // Copyright 2014 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.
5 #ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_UMA_UTIL_H_
6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_UMA_UTIL_H_
12 class ManifestUmaUtil
{
14 enum FetchFailureReason
{
16 FETCH_UNSPECIFIED_REASON
19 // Record that the Manifest was successfully parsed. If it is an empty
20 // Manifest, it will recorded as so and nothing will happen. Otherwise, the
21 // presence of each properties will be recorded.
22 static void ParseSucceeded(const Manifest
& manifest
);
24 // Record that the Manifest parsing failed.
25 static void ParseFailed();
27 // Record that the Manifest fetching succeeded.
28 static void FetchSucceeded();
30 // Record that the Manifest fetching failed and takes the |reason| why it
32 static void FetchFailed(FetchFailureReason reason
);
35 } // namespace content
37 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_UMA_UTIL_H_