OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_SENSORS_PROVIDER_H_ |
| 6 #define CONTENT_BROWSER_SENSORS_PROVIDER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "content/common/sensors_listener.h" |
| 10 |
| 11 namespace sensors { |
| 12 |
| 13 class Provider { |
| 14 public: |
| 15 static Provider* GetInstance(); |
| 16 |
| 17 virtual Connection* Open(Listener* listener) = 0; |
| 18 |
| 19 virtual void FireSensorChanged(Channel channel, const std::string& data) = 0; |
| 20 |
| 21 protected: |
| 22 Provider() {}; |
| 23 virtual ~Provider() {}; |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(Provider); |
| 26 }; |
| 27 |
| 28 } // namespace sensors |
| 29 |
| 30 #endif // CONTENT_BROWSER_SENSORS_PROVIDER_H_ |
OLD | NEW |