| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "content/public/common/connection_filter.h" | 11 #include "content/public/common/connection_filter.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 // InterfaceFactory for creating all services provided by chrome. Lives on the | 15 // InterfaceFactory for creating all services provided by chrome. Lives on the |
| 16 // IO thread. | 16 // IO thread. |
| 17 class ChromeInterfaceFactory : public content::ConnectionFilter { | 17 class ChromeInterfaceFactory : public content::ConnectionFilter { |
| 18 public: | 18 public: |
| 19 ChromeInterfaceFactory(); | 19 ChromeInterfaceFactory(); |
| 20 ~ChromeInterfaceFactory() override; | 20 ~ChromeInterfaceFactory() override; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 // content::ConnectionFilter: | 23 // content::ConnectionFilter: |
| 24 bool OnConnect(const shell::Identity& remote_identity, | 24 bool OnConnect(const service_manager::Identity& remote_identity, |
| 25 shell::InterfaceRegistry* registry, | 25 service_manager::InterfaceRegistry* registry, |
| 26 shell::Connector* connector) override; | 26 service_manager::Connector* connector) override; |
| 27 | 27 |
| 28 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 28 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory); | 30 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace chromeos | 33 } // namespace chromeos |
| 34 | 34 |
| 35 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ | 35 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ |
| OLD | NEW |