OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_EVENT_ROUTER_H_ |
| 6 #define EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_EVENT_ROUTER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/keyed_service/core/keyed_service.h" |
| 10 #include "extensions/browser/event_router.h" |
| 11 |
| 12 namespace content { |
| 13 class BrowserContext; |
| 14 } |
| 15 |
| 16 namespace extensions { |
| 17 |
| 18 // Observe listeners to 'onSinksUpdated' events. |
| 19 class DisplaySourceEventRouter : public KeyedService, |
| 20 public EventRouter::Observer { |
| 21 public: |
| 22 static DisplaySourceEventRouter* Create( |
| 23 content::BrowserContext* browser_context); |
| 24 |
| 25 protected: |
| 26 DisplaySourceEventRouter() = default; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(DisplaySourceEventRouter); |
| 30 }; |
| 31 |
| 32 } // namespace extensions |
| 33 |
| 34 #endif // EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_EVENT_ROUTER_H_ |
OLD | NEW |