Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: extensions/renderer/bindings/argument_spec_builder.cc

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/argument_spec_builder.h ('k') | extensions/renderer/bindings/argument_spec_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698