OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/physical_web_data_source/physical_web_data_source.h" |
| 6 |
| 7 namespace { |
| 8 PhysicalWebDataSource* g_physical_web_data_source = nullptr; |
| 9 } |
| 10 |
| 11 PhysicalWebDataSource::PhysicalWebDataSource() {} |
| 12 |
| 13 PhysicalWebDataSource::~PhysicalWebDataSource() {} |
| 14 |
| 15 // static |
| 16 PhysicalWebDataSource* PhysicalWebDataSource::GetInstance() { |
| 17 return g_physical_web_data_source; |
| 18 } |
| 19 |
| 20 // static |
| 21 void PhysicalWebDataSource::SetInstance( |
| 22 PhysicalWebDataSource* instance) { |
| 23 g_physical_web_data_source = instance; |
| 24 } |
OLD | NEW |