summaryrefslogtreecommitdiff
path: root/chromeos-dbus-bindings/header_generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos-dbus-bindings/header_generator.h')
-rw-r--r--chromeos-dbus-bindings/header_generator.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/chromeos-dbus-bindings/header_generator.h b/chromeos-dbus-bindings/header_generator.h
index 938e93b..55b1265 100644
--- a/chromeos-dbus-bindings/header_generator.h
+++ b/chromeos-dbus-bindings/header_generator.h
@@ -30,19 +30,12 @@ class HeaderGenerator {
// Create a unique header guard string to protect multiple includes of header.
static std::string GenerateHeaderGuard(const base::FilePath& output_file);
- // Returns a vector of nesting namespaces.
- static bool GetNamespacesAndClassName(const std::string& interface_name,
- std::vector<std::string>* namespaces,
- std::string* class_name);
-
- // Returns a fully-qualified class name like "ns1::ns2::class_name".
- static std::string GetFullClassName(
- const std::vector<std::string>& namespaces,
- const std::string& class_name);
-
// Used to decide whether the argument should be a const reference.
static bool IsIntegralType(const std::string& type);
+ // If |type| is a non-integral type, converts it into a const reference.
+ static void MakeConstReferenceIfNeeded(std::string* type);
+
// Writes indented text to a file.
static bool WriteTextToFile(const base::FilePath& output_file,
const IndentedText& text);