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

Unified Diff: device/time_zone_monitor/time_zone_monitor.h

Issue 2353283002: [TimeZoneMonitor] Decouple //content/browser/time_zone_monitor* to //device/. (Closed)
Patch Set: Do not set output_name in gn Created 4 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 side-by-side diff with in-line comments
Download patch
Index: device/time_zone_monitor/time_zone_monitor.h
diff --git a/content/browser/time_zone_monitor.h b/device/time_zone_monitor/time_zone_monitor.h
similarity index 87%
rename from content/browser/time_zone_monitor.h
rename to device/time_zone_monitor/time_zone_monitor.h
index f0c26fe8e4716540b22504559170cf97d615378f..f79f94a052371ac4531494dc81941b13b4fb8c2e 100644
--- a/content/browser/time_zone_monitor.h
+++ b/device/time_zone_monitor/time_zone_monitor.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/threading/thread_checker.h"
#include "device/time_zone_monitor/public/interfaces/time_zone_monitor.mojom.h"
+#include "device/time_zone_monitor/time_zone_monitor_export.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/interface_ptr_set.h"
@@ -20,7 +21,7 @@ namespace base {
class SequencedTaskRunner;
}
-namespace content {
+namespace device {
// TimeZoneMonitor watches the system time zone, and notifies renderers
// when it changes. Some renderer code caches the system time zone, so
@@ -44,12 +45,13 @@ class TimeZoneMonitor : public device::mojom::TimeZoneMonitor {
// Returns a new TimeZoneMonitor object (likely a subclass) specific to the
// platform. Inject |file_task_runner| to enable running blocking file
// operations on it when necessary.
- static std::unique_ptr<TimeZoneMonitor> Create(
- scoped_refptr<base::SequencedTaskRunner> file_task_runner);
+ DEVICE_TIME_ZONE_MONITOR_EXPORT static std::unique_ptr<TimeZoneMonitor>
+ Create(scoped_refptr<base::SequencedTaskRunner> file_task_runner);
~TimeZoneMonitor() override;
- void Bind(device::mojom::TimeZoneMonitorRequest request);
+ DEVICE_TIME_ZONE_MONITOR_EXPORT void Bind(
+ device::mojom::TimeZoneMonitorRequest request);
protected:
TimeZoneMonitor();
@@ -68,6 +70,6 @@ class TimeZoneMonitor : public device::mojom::TimeZoneMonitor {
DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitor);
};
-} // namespace content
+} // namespace device
#endif // CONTENT_BROWSER_TIME_ZONE_MONITOR_H_
« no previous file with comments | « device/time_zone_monitor/android/time_zone_monitor_jni_registrar.cc ('k') | device/time_zone_monitor/time_zone_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698