1 // Copyright 2014 The Chromium OS 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 CHROMEOS_DBUS_BINDINGS_METHOD_NAME_GENERATOR_H_ 6 #define CHROMEOS_DBUS_BINDINGS_METHOD_NAME_GENERATOR_H_ 7 8 #include <string> 9 #include <vector> 10 11 #include <base/macros.h> 12 13 #include "chromeos-dbus-bindings/header_generator.h" 14 15 namespace base { 16 17 class FilePath; 18 19 } // namespace base 20 21 namespace chromeos_dbus_bindings { 22 23 struct Interface; 24 25 class MethodNameGenerator : public HeaderGenerator { 26 public: 27 static bool GenerateMethodNames(const std::vector<Interface>& interfaces, 28 const base::FilePath& output_file); 29 static std::string GenerateMethodNameConstant(const std::string& method_name); 30 31 private: 32 friend class MethodNameGeneratorTest; 33 34 DISALLOW_COPY_AND_ASSIGN(MethodNameGenerator); 35 }; 36 37 } // namespace chromeos_dbus_bindings 38 39 #endif // CHROMEOS_DBUS_BINDINGS_METHOD_NAME_GENERATOR_H_ 40