OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/ppapi_plugin/ppapi_thread.h" | 5 #include "content/ppapi_plugin/ppapi_thread.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/cpu.h" | 10 #include "base/cpu.h" |
11 #include "base/debug/crash_logging.h" | 11 #include "base/debug/crash_logging.h" |
12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/metrics/sparse_histogram.h" | 15 #include "base/metrics/sparse_histogram.h" |
16 #include "base/rand_util.h" | 16 #include "base/rand_util.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "content/child/browser_font_resource_trusted.h" | 21 #include "content/child/browser_font_resource_trusted.h" |
22 #include "content/child/child_process.h" | 22 #include "content/child/child_process.h" |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 std::string("Plugin.Ppapi") + (is_broker_ ? "Broker" : "Plugin") + | 543 std::string("Plugin.Ppapi") + (is_broker_ ? "Broker" : "Plugin") + |
544 "LoadErrorCode_" + path.BaseName().MaybeAsASCII(); | 544 "LoadErrorCode_" + path.BaseName().MaybeAsASCII(); |
545 | 545 |
546 // For sparse histograms, we can use the macro, as it does not incorporate a | 546 // For sparse histograms, we can use the macro, as it does not incorporate a |
547 // static. | 547 // static. |
548 UMA_HISTOGRAM_SPARSE_SLOWLY(histogram_name, error.code); | 548 UMA_HISTOGRAM_SPARSE_SLOWLY(histogram_name, error.code); |
549 #endif | 549 #endif |
550 } | 550 } |
551 | 551 |
552 } // namespace content | 552 } // namespace content |
OLD | NEW |