| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "extensions/renderer/argument_spec_builder.h" | 5 #include "extensions/renderer/bindings/argument_spec_builder.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| 11 ArgumentSpecBuilder::ArgumentSpecBuilder(ArgumentType type) | 11 ArgumentSpecBuilder::ArgumentSpecBuilder(ArgumentType type) |
| 12 : ArgumentSpecBuilder(type, base::StringPiece()) {} | 12 : ArgumentSpecBuilder(type, base::StringPiece()) {} |
| 13 | 13 |
| 14 ArgumentSpecBuilder::ArgumentSpecBuilder(ArgumentType type, | 14 ArgumentSpecBuilder::ArgumentSpecBuilder(ArgumentType type, |
| 15 base::StringPiece name) | 15 base::StringPiece name) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 spec_->set_additional_properties(std::move(additional_properties)); | 65 spec_->set_additional_properties(std::move(additional_properties)); |
| 66 return *this; | 66 return *this; |
| 67 } | 67 } |
| 68 | 68 |
| 69 std::unique_ptr<ArgumentSpec> ArgumentSpecBuilder::Build() { | 69 std::unique_ptr<ArgumentSpec> ArgumentSpecBuilder::Build() { |
| 70 spec_->set_properties(std::move(properties_)); | 70 spec_->set_properties(std::move(properties_)); |
| 71 return std::move(spec_); | 71 return std::move(spec_); |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace extensions | 74 } // namespace extensions |
| OLD | NEW |