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

Side by Side Diff: extensions/renderer/bindings/api_binding_test_util.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_API_BINDING_TEST_UTIL_H_ 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TEST_UTIL_H_
6 #define EXTENSIONS_RENDERER_API_BINDING_TEST_UTIL_H_ 6 #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TEST_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
12 #include "v8/include/v8.h" 12 #include "v8/include/v8.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 class ListValue; 16 class ListValue;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 base::StringPiece key); 120 base::StringPiece key);
121 121
122 // As above, but returns a JSON-serialized version of the value, or 122 // As above, but returns a JSON-serialized version of the value, or
123 // "undefined", "null", "function", or "empty". 123 // "undefined", "null", "function", or "empty".
124 std::string GetStringPropertyFromObject(v8::Local<v8::Object> object, 124 std::string GetStringPropertyFromObject(v8::Local<v8::Object> object,
125 v8::Local<v8::Context> context, 125 v8::Local<v8::Context> context,
126 base::StringPiece key); 126 base::StringPiece key);
127 127
128 } // extensions 128 } // extensions
129 129
130 #endif // EXTENSIONS_RENDERER_API_BINDING_TEST_UTIL_H_ 130 #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_binding_test.cc ('k') | extensions/renderer/bindings/api_binding_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698