Index: components/physical_web_data_source/physical_web_data_source.cc |
diff --git a/components/physical_web_data_source/physical_web_data_source.cc b/components/physical_web_data_source/physical_web_data_source.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5844961a4666eb8ca9ba70910ad7115b6b72933 |
--- /dev/null |
+++ b/components/physical_web_data_source/physical_web_data_source.cc |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/physical_web_data_source/physical_web_data_source.h" |
+ |
+namespace { |
+PhysicalWebDataSource* g_physical_web_data_source = nullptr; |
+} |
+ |
+PhysicalWebDataSource::PhysicalWebDataSource() {} |
+ |
+PhysicalWebDataSource::~PhysicalWebDataSource() {} |
+ |
+// static |
+PhysicalWebDataSource* PhysicalWebDataSource::GetInstance() { |
+ return g_physical_web_data_source; |
+} |
+ |
+// static |
+void PhysicalWebDataSource::SetInstance( |
+ PhysicalWebDataSource* instance) { |
+ g_physical_web_data_source = instance; |
+} |