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

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

Issue 25378002: Move the rest of source files from webkit/renderer to content/renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_STATS_COLLECTION_CONTROLLER_H_ 5 #ifndef CONTENT_RENDERER_STATS_COLLECTION_CONTROLLER_H_
6 #define CONTENT_RENDERER_STATS_COLLECTION_CONTROLLER_H_ 6 #define CONTENT_RENDERER_STATS_COLLECTION_CONTROLLER_H_
7 7
8 #include "content/renderer/cpp_bound_class.h"
8 #include "ipc/ipc_sender.h" 9 #include "ipc/ipc_sender.h"
9 #include "webkit/renderer/cpp_bound_class.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // This class is exposed in JS as window.statsCollectionController and provides 13 // This class is exposed in JS as window.statsCollectionController and provides
14 // functionality to read out statistics from the browser. 14 // functionality to read out statistics from the browser.
15 // Its use must be enabled specifically via the 15 // Its use must be enabled specifically via the
16 // --enable-stats-collection-bindings command line flag. 16 // --enable-stats-collection-bindings command line flag.
17 class StatsCollectionController : public webkit_glue::CppBoundClass { 17 class StatsCollectionController : public CppBoundClass {
18 public: 18 public:
19 StatsCollectionController(); 19 StatsCollectionController();
20 20
21 void set_message_sender(IPC::Sender* sender) { 21 void set_message_sender(IPC::Sender* sender) {
22 sender_ = sender; 22 sender_ = sender;
23 } 23 }
24 24
25 // Retrieves a histogram and returns a JSON representation of it. 25 // Retrieves a histogram and returns a JSON representation of it.
26 void GetHistogram(const webkit_glue::CppArgumentList& args, 26 void GetHistogram(const CppArgumentList& args, CppVariant* result);
27 webkit_glue::CppVariant* result);
28 27
29 // Retrieves a histogram from the browser process and returns a JSON 28 // Retrieves a histogram from the browser process and returns a JSON
30 // representation of it. 29 // representation of it.
31 void GetBrowserHistogram(const webkit_glue::CppArgumentList& args, 30 void GetBrowserHistogram(const CppArgumentList& args, CppVariant* result);
32 webkit_glue::CppVariant* result);
33 31
34 // Returns JSON representation of tab timing information for the current tab. 32 // Returns JSON representation of tab timing information for the current tab.
35 void GetTabLoadTiming(const webkit_glue::CppArgumentList& args, 33 void GetTabLoadTiming(const CppArgumentList& args, CppVariant* result);
36 webkit_glue::CppVariant* result); 34
37 private: 35 private:
38 IPC::Sender* sender_; 36 IPC::Sender* sender_;
39 }; 37 };
40 38
41 } // namespace content 39 } // namespace content
42 40
43 #endif // CONTENT_RENDERER_STATS_COLLECTION_CONTROLLER_H_ 41 #endif // CONTENT_RENDERER_STATS_COLLECTION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698