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/renderer/pepper/pepper_plugin_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_offset_string_conversions.h" | 14 #include "base/strings/utf_offset_string_conversions.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
18 #include "cc/base/latency_info_swap_promise.h" | |
19 #include "cc/blink/web_layer_impl.h" | 18 #include "cc/blink/web_layer_impl.h" |
20 #include "cc/layers/texture_layer.h" | 19 #include "cc/layers/texture_layer.h" |
| 20 #include "cc/output/latency_info_swap_promise.h" |
21 #include "cc/trees/layer_tree_host.h" | 21 #include "cc/trees/layer_tree_host.h" |
22 #include "content/common/content_constants_internal.h" | 22 #include "content/common/content_constants_internal.h" |
23 #include "content/common/frame_messages.h" | 23 #include "content/common/frame_messages.h" |
24 #include "content/common/input/web_input_event_traits.h" | 24 #include "content/common/input/web_input_event_traits.h" |
25 #include "content/common/view_messages.h" | 25 #include "content/common/view_messages.h" |
26 #include "content/public/common/content_constants.h" | 26 #include "content/public/common/content_constants.h" |
27 #include "content/public/common/page_zoom.h" | 27 #include "content/public/common/page_zoom.h" |
28 #include "content/public/renderer/content_renderer_client.h" | 28 #include "content/public/renderer/content_renderer_client.h" |
29 #include "content/renderer/gpu/render_widget_compositor.h" | 29 #include "content/renderer/gpu/render_widget_compositor.h" |
30 #include "content/renderer/pepper/content_decryptor_delegate.h" | 30 #include "content/renderer/pepper/content_decryptor_delegate.h" |
(...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3320 | 3320 |
3321 void PepperPluginInstanceImpl::RecordFlashJavaScriptUse() { | 3321 void PepperPluginInstanceImpl::RecordFlashJavaScriptUse() { |
3322 if (initialized_ && !javascript_used_ && is_flash_plugin_) { | 3322 if (initialized_ && !javascript_used_ && is_flash_plugin_) { |
3323 javascript_used_ = true; | 3323 javascript_used_ = true; |
3324 RenderThread::Get()->RecordAction( | 3324 RenderThread::Get()->RecordAction( |
3325 base::UserMetricsAction("Flash.JavaScriptUsed")); | 3325 base::UserMetricsAction("Flash.JavaScriptUsed")); |
3326 } | 3326 } |
3327 } | 3327 } |
3328 | 3328 |
3329 } // namespace content | 3329 } // namespace content |
OLD | NEW |