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

Side by Side Diff: chrome/browser/ui/webui/metrics_handler.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/webui/metrics_handler.h ('k') | chrome/browser/ui/webui/net_internals_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/ui/webui/metrics_handler.h" 5 #include "chrome/browser/ui/webui/metrics_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/metrics/metric_event_duration_details.h" 13 #include "chrome/browser/metrics/metric_event_duration_details.h"
14 #include "chrome/browser/ui/webui/chrome_web_ui.h" 14 #include "chrome/browser/ui/webui/chrome_web_ui.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "content/browser/webui/web_ui.h"
16 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
17 #include "content/public/browser/user_metrics.h" 18 #include "content/public/browser/user_metrics.h"
18 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
19 20
20 using base::ListValue; 21 using base::ListValue;
21 using content::UserMetricsAction; 22 using content::UserMetricsAction;
22 using content::WebContents; 23 using content::WebContents;
23 24
24 MetricsHandler::MetricsHandler() {} 25 MetricsHandler::MetricsHandler() {}
25 MetricsHandler::~MetricsHandler() {} 26 MetricsHandler::~MetricsHandler() {}
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // The new tab page has finished loading; reset it. 99 // The new tab page has finished loading; reset it.
99 tab->SetNewTabStartTime(base::TimeTicks()); 100 tab->SetNewTabStartTime(base::TimeTicks());
100 } else { 101 } else {
101 NOTREACHED(); 102 NOTREACHED();
102 } 103 }
103 content::NotificationService::current()->Notify( 104 content::NotificationService::current()->Notify(
104 chrome::NOTIFICATION_METRIC_EVENT_DURATION, 105 chrome::NOTIFICATION_METRIC_EVENT_DURATION,
105 content::Source<WebContents>(tab), 106 content::Source<WebContents>(tab),
106 content::Details<MetricEventDurationDetails>(&details)); 107 content::Details<MetricEventDurationDetails>(&details));
107 } 108 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/metrics_handler.h ('k') | chrome/browser/ui/webui/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698