Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 1683583002: Report user actions when gesture starts and stops in user_model. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not register action callback in single process. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/cancelable_callback.h" 15 #include "base/cancelable_callback.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/memory_pressure_listener.h" 17 #include "base/memory/memory_pressure_listener.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/metrics/user_metrics.h"
19 #include "base/metrics/user_metrics_action.h" 20 #include "base/metrics/user_metrics_action.h"
20 #include "base/observer_list.h" 21 #include "base/observer_list.h"
21 #include "base/strings/string16.h" 22 #include "base/strings/string16.h"
22 #include "base/threading/thread_checker.h" 23 #include "base/threading/thread_checker.h"
23 #include "base/timer/timer.h" 24 #include "base/timer/timer.h"
24 #include "build/build_config.h" 25 #include "build/build_config.h"
25 #include "content/child/child_thread_impl.h" 26 #include "content/child/child_thread_impl.h"
26 #include "content/common/content_export.h" 27 #include "content/common/content_export.h"
27 #include "content/common/frame_replication_state.h" 28 #include "content/common/frame_replication_state.h"
28 #include "content/common/gpu_process_launch_causes.h" 29 #include "content/common/gpu_process_launch_causes.h"
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 mojo::shell::mojom::InterfaceProviderRequest services_; 708 mojo::shell::mojom::InterfaceProviderRequest services_;
708 mojo::shell::mojom::InterfaceProviderPtr exposed_services_; 709 mojo::shell::mojom::InterfaceProviderPtr exposed_services_;
709 }; 710 };
710 711
711 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>> 712 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>>
712 PendingRenderFrameConnectMap; 713 PendingRenderFrameConnectMap;
713 PendingRenderFrameConnectMap pending_render_frame_connects_; 714 PendingRenderFrameConnectMap pending_render_frame_connects_;
714 715
715 mojom::StoragePartitionServicePtr storage_partition_service_; 716 mojom::StoragePartitionServicePtr storage_partition_service_;
716 717
718 // Callback for logging UMA user action.
719 base::ActionCallback action_callback_;
720
717 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 721 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
718 }; 722 };
719 723
720 #if defined(COMPILER_MSVC) 724 #if defined(COMPILER_MSVC)
721 #pragma warning(pop) 725 #pragma warning(pop)
722 #endif 726 #endif
723 727
724 } // namespace content 728 } // namespace content
725 729
726 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 730 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « components/scheduler/renderer/user_model_unittest.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698