1 // Copyright 2014 The Android Open Source Project 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #ifndef FIREWALLD_FIREWALL_DAEMON_H_ 16 #define FIREWALLD_FIREWALL_DAEMON_H_ 17 18 #include <base/macros.h> 19 #include <brillo/daemons/dbus_daemon.h> 20 #include <brillo/dbus/async_event_sequencer.h> 21 22 #include "dbus_interface.h" 23 #include "firewall_service.h" 24 25 using brillo::dbus_utils::AsyncEventSequencer; 26 27 namespace firewalld { 28 29 class FirewallDaemon : public brillo::DBusServiceDaemon { 30 public: 31 FirewallDaemon(); 32 33 protected: 34 void RegisterDBusObjectsAsync(AsyncEventSequencer* sequencer) override; 35 36 private: 37 std::unique_ptr<FirewallService> firewall_service_; 38 39 DISALLOW_COPY_AND_ASSIGN(FirewallDaemon); 40 }; 41 42 } // namespace firewalld 43 44 #endif // FIREWALLD_FIREWALL_DAEMON_H_ 45