OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
12 #include "base/command_line.h" | 13 #include "base/command_line.h" |
13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
14 #include "base/gfx/png_encoder.h" | 15 #include "base/gfx/png_encoder.h" |
15 #include "base/gfx/native_widget_types.h" | 16 #include "base/gfx/native_widget_types.h" |
16 #include "base/string_piece.h" | 17 #include "base/string_piece.h" |
17 #include "base/string_util.h" | 18 #include "base/string_util.h" |
18 #include "build/build_config.h" | 19 #include "build/build_config.h" |
19 #include "chrome/common/bindings_policy.h" | 20 #include "chrome/common/bindings_policy.h" |
20 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/common/gfx/favicon_size.h" | 22 #include "chrome/common/gfx/favicon_size.h" |
22 #include "chrome/common/gfx/color_utils.h" | 23 #include "chrome/common/gfx/color_utils.h" |
23 #include "chrome/common/jstemplate_builder.h" | 24 #include "chrome/common/jstemplate_builder.h" |
24 #include "chrome/common/l10n_util.h" | |
25 #include "chrome/common/message_box_flags.h" | 25 #include "chrome/common/message_box_flags.h" |
26 #include "chrome/common/page_zoom.h" | 26 #include "chrome/common/page_zoom.h" |
27 #include "chrome/common/render_messages.h" | 27 #include "chrome/common/render_messages.h" |
28 #include "chrome/common/thumbnail_score.h" | 28 #include "chrome/common/thumbnail_score.h" |
29 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
30 #include "chrome/renderer/about_handler.h" | 30 #include "chrome/renderer/about_handler.h" |
31 #include "chrome/renderer/audio_message_filter.h" | 31 #include "chrome/renderer/audio_message_filter.h" |
32 #include "chrome/renderer/debug_message_handler.h" | 32 #include "chrome/renderer/debug_message_handler.h" |
33 #include "chrome/renderer/devtools_agent.h" | 33 #include "chrome/renderer/devtools_agent.h" |
34 #include "chrome/renderer/devtools_client.h" | 34 #include "chrome/renderer/devtools_client.h" |
(...skipping 2942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2977 } | 2977 } |
2978 } | 2978 } |
2979 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc); | 2979 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc); |
2980 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish); | 2980 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish); |
2981 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish); | 2981 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish); |
2982 if (start_to_first_layout.ToInternalValue() >= 0) { | 2982 if (start_to_first_layout.ToInternalValue() >= 0) { |
2983 UMA_HISTOGRAM_TIMES( | 2983 UMA_HISTOGRAM_TIMES( |
2984 "Renderer.All.StartToFirstLayout", start_to_first_layout); | 2984 "Renderer.All.StartToFirstLayout", start_to_first_layout); |
2985 } | 2985 } |
2986 } | 2986 } |
OLD | NEW |