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

Side by Side Diff: chrome/browser/metrics/metrics_reporting_scheduler.h

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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/mac/keystone_glue.mm ('k') | chrome/browser/prefs/pref_model_associator.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 #ifndef CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_ 5 #ifndef CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_
6 #define CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_ 6 #define CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "base/time.h"
12 13
13 // Scheduler task to drive a MetricsService object's uploading. 14 // Scheduler task to drive a MetricsService object's uploading.
14 class MetricsReportingScheduler { 15 class MetricsReportingScheduler {
15 public: 16 public:
16 explicit MetricsReportingScheduler(const base::Closure& upload_callback); 17 explicit MetricsReportingScheduler(const base::Closure& upload_callback);
17 ~MetricsReportingScheduler(); 18 ~MetricsReportingScheduler();
18 19
19 // Starts scheduling uploads. This in a no-op if the scheduler is already 20 // Starts scheduling uploads. This in a no-op if the scheduler is already
20 // running, so it is safe to call more than once. 21 // running, so it is safe to call more than once.
21 void Start(); 22 void Start();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // started. 60 // started.
60 bool timer_pending_; 61 bool timer_pending_;
61 62
62 // Indicates that the last triggered upload hasn't resolved yet. 63 // Indicates that the last triggered upload hasn't resolved yet.
63 bool callback_pending_; 64 bool callback_pending_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(MetricsReportingScheduler); 66 DISALLOW_COPY_AND_ASSIGN(MetricsReportingScheduler);
66 }; 67 };
67 68
68 #endif // CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_ 69 #endif // CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_
OLDNEW
« no previous file with comments | « chrome/browser/mac/keystone_glue.mm ('k') | chrome/browser/prefs/pref_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698