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

Unified Diff: components/network_time/network_time_tracker.h

Issue 296453005: Componentize chrome/browser/network_time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix iOS Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/network_time/network_time_pref_names.cc ('k') | components/network_time/network_time_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_time/network_time_tracker.h
diff --git a/chrome/browser/network_time/network_time_tracker.h b/components/network_time/network_time_tracker.h
similarity index 91%
rename from chrome/browser/network_time/network_time_tracker.h
rename to components/network_time/network_time_tracker.h
index 4c670d36bffba6e1b1547d98b463697e1a347dba..6662200f6b614e2e90d5907702e76b32392f92b4 100644
--- a/chrome/browser/network_time/network_time_tracker.h
+++ b/components/network_time/network_time_tracker.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
-#define CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
+#ifndef COMPONENTS_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
+#define COMPONENTS_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
@@ -16,6 +16,8 @@ namespace base {
class TickClock;
}
+namespace network_time {
+
// A class that receives network time updates and can provide the network time
// for a corresponding local time. This class is not thread safe.
class NetworkTimeTracker {
@@ -73,4 +75,6 @@ class NetworkTimeTracker {
DISALLOW_COPY_AND_ASSIGN(NetworkTimeTracker);
};
-#endif // CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
+} // namespace network_time
+
+#endif // COMPONENTS_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
« no previous file with comments | « components/network_time/network_time_pref_names.cc ('k') | components/network_time/network_time_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698