OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_UMA_UTIL_H_ | |
6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_UMA_UTIL_H_ | |
7 | |
8 namespace content { | |
9 | |
10 struct Manifest; | |
11 | |
12 class ManifestUmaUtil { | |
13 public: | |
14 enum FetchFailureReason { | |
Miguel Garcia
2014/10/02 15:56:42
can't we forward declare enums now?
mlamouri (slow - plz ping)
2014/10/02 16:10:55
Not yet, sadly.
| |
15 FETCH_EMPTY_URL = 0, | |
16 FETCH_UNSPECIFIED_REASON | |
Miguel Garcia
2014/10/02 15:56:42
Oh you need all kind of parafernalia for UMA enums
mlamouri (slow - plz ping)
2014/10/02 16:10:55
That's what I do for the internal enum. Not the ex
| |
17 }; | |
18 | |
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); | |
23 | |
24 // Record that the Manifest parsing failed. | |
25 static void ParseFailed(); | |
26 | |
27 // Record that the Manifest fetching succeeded. | |
Miguel Garcia
2014/10/02 15:56:42
Record whether it succeeded (since you track failu
mlamouri (slow - plz ping)
2014/10/02 16:10:55
Did not understood.
| |
28 static void FetchSucceeded(); | |
29 | |
30 // Record that the Manifest fetching failed and takes the |reason| why it | |
31 // failed. | |
32 static void FetchFailed(FetchFailureReason reason); | |
33 }; | |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_UMA_UTIL_H_ | |
OLD | NEW |