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

Side by Side Diff: chrome/browser/metrics/tracking_synchronizer.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 (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/metrics/tracking_synchronizer.h" 5 #include "chrome/browser/metrics/tracking_synchronizer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "base/tracked_objects.h" 13 #include "base/tracked_objects.h"
14 #include "chrome/browser/ui/webui/tracing_ui.h" 14 #include "chrome/browser/ui/webui/tracing_ui.h"
15 #include "chrome/common/chrome_constants.h" 15 #include "chrome/common/chrome_constants.h"
16 #include "chrome/common/render_messages.h" 16 #include "chrome/common/render_messages.h"
17 #include "content/browser/renderer_host/render_process_host.h"
18 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/render_process_host.h"
19 19
20 using base::TimeTicks; 20 using base::TimeTicks;
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 namespace chrome_browser_metrics { 23 namespace chrome_browser_metrics {
24 24
25 // Negative numbers are never used as sequence numbers. We explicitly pick a 25 // Negative numbers are never used as sequence numbers. We explicitly pick a
26 // negative number that is "so negative" that even when we add one (as is done 26 // negative number that is "so negative" that even when we add one (as is done
27 // when we generated the next sequence number) that it will still be negative. 27 // when we generated the next sequence number) that it will still be negative.
28 // We have code that handles wrapping around on an overflow into negative 28 // We have code that handles wrapping around on an overflow into negative
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Watch out for wrapping to a negative number. 262 // Watch out for wrapping to a negative number.
263 if (last_used_sequence_number_ < 0) 263 if (last_used_sequence_number_ < 0)
264 last_used_sequence_number_ = 1; 264 last_used_sequence_number_ = 1;
265 return last_used_sequence_number_; 265 return last_used_sequence_number_;
266 } 266 }
267 267
268 // static 268 // static
269 TrackingSynchronizer* TrackingSynchronizer::tracking_synchronizer_ = NULL; 269 TrackingSynchronizer* TrackingSynchronizer::tracking_synchronizer_ = NULL;
270 270
271 } // namespace chrome_browser_metrics 271 } // namespace chrome_browser_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698