// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_NO_STATE_PREFETCH_COMMON_NO_STATE_PREFETCH_FINAL_STATUS_H_ #define COMPONENTS_NO_STATE_PREFETCH_COMMON_NO_STATE_PREFETCH_FINAL_STATUS_H_ namespace prerender { // FinalStatus indicates whether |this| was used, or why it was cancelled. // NOTE: New values need to be appended, since they are used in histograms. // // If you change this, please follow the process in // go/preloading-dashboard-updates to update the mapping reflected in dashboard, // or if you are not a Googler, please file an FYI bug on https://crbug.new with // component Internals>Preload. // // These values are persisted to logs. Entries should not be renumbered and // numeric values should never be reused. The values should remain // synchronized with the enum PrerenderFinalStatus in // //tools/metrics/histograms/enums.xml. // // LINT.IfChange enum FinalStatus { … }; // LINT.ThenChange() // Return a human-readable name for |final_status|. |final_status| // is expected to be a valid value. const char* NameFromFinalStatus(FinalStatus final_status); } // namespace prerender #endif // COMPONENTS_NO_STATE_PREFETCH_COMMON_NO_STATE_PREFETCH_FINAL_STATUS_H_