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

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

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 #ifndef EXTENSIONS_RENDERER_ARGUMENT_SPEC_BUILDER_H_ 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_ARGUMENT_SPEC_BUILDER_H_
6 #define EXTENSIONS_RENDERER_ARGUMENT_SPEC_BUILDER_H_ 6 #define EXTENSIONS_RENDERER_BINDINGS_ARGUMENT_SPEC_BUILDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "extensions/renderer/argument_spec.h" 14 #include "extensions/renderer/bindings/argument_spec.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 // A utility class for helping construct ArgumentSpecs in tests. 18 // A utility class for helping construct ArgumentSpecs in tests.
19 // NOTE: This is designed to be test-only. It's not worth adding to production 19 // NOTE: This is designed to be test-only. It's not worth adding to production
20 // code because it's a) only a bit of syntactic sugar and b) rife with footguns. 20 // code because it's a) only a bit of syntactic sugar and b) rife with footguns.
21 class ArgumentSpecBuilder { 21 class ArgumentSpecBuilder {
22 public: 22 public:
23 explicit ArgumentSpecBuilder(ArgumentType type); 23 explicit ArgumentSpecBuilder(ArgumentType type);
24 ArgumentSpecBuilder(ArgumentType type, base::StringPiece name); 24 ArgumentSpecBuilder(ArgumentType type, base::StringPiece name);
(...skipping 15 matching lines...) Expand all
40 40
41 private: 41 private:
42 std::unique_ptr<ArgumentSpec> spec_; 42 std::unique_ptr<ArgumentSpec> spec_;
43 ArgumentSpec::PropertiesMap properties_; 43 ArgumentSpec::PropertiesMap properties_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(ArgumentSpecBuilder); 45 DISALLOW_COPY_AND_ASSIGN(ArgumentSpecBuilder);
46 }; 46 };
47 47
48 } // namespace extensions 48 } // namespace extensions
49 49
50 #endif // EXTENSIONS_RENDERER_ARGUMENT_SPEC_BUILDER_H_ 50 #endif // EXTENSIONS_RENDERER_BINDINGS_ARGUMENT_SPEC_BUILDER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/argument_spec.cc ('k') | extensions/renderer/bindings/argument_spec_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698