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

Side by Side Diff: extensions/renderer/bindings/api_binding_js_util.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 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 #include "extensions/renderer/api_binding_js_util.h" 5 #include "extensions/renderer/bindings/api_binding_js_util.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "extensions/renderer/api_event_handler.h" 8 #include "extensions/renderer/bindings/api_event_handler.h"
9 #include "extensions/renderer/api_request_handler.h" 9 #include "extensions/renderer/bindings/api_request_handler.h"
10 #include "extensions/renderer/api_signature.h" 10 #include "extensions/renderer/bindings/api_signature.h"
11 #include "extensions/renderer/api_type_reference_map.h" 11 #include "extensions/renderer/bindings/api_type_reference_map.h"
12 #include "extensions/renderer/declarative_event.h" 12 #include "extensions/renderer/bindings/declarative_event.h"
13 #include "gin/converter.h" 13 #include "gin/converter.h"
14 #include "gin/dictionary.h" 14 #include "gin/dictionary.h"
15 #include "gin/handle.h" 15 #include "gin/handle.h"
16 #include "gin/object_template_builder.h" 16 #include "gin/object_template_builder.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 gin::WrapperInfo APIBindingJSUtil::kWrapperInfo = {gin::kEmbedderNativeGin}; 20 gin::WrapperInfo APIBindingJSUtil::kWrapperInfo = {gin::kEmbedderNativeGin};
21 21
22 APIBindingJSUtil::APIBindingJSUtil(APITypeReferenceMap* type_refs, 22 APIBindingJSUtil::APIBindingJSUtil(APITypeReferenceMap* type_refs,
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 v8::Local<v8::Context> context = arguments->GetHolderCreationContext(); 200 v8::Local<v8::Context> context = arguments->GetHolderCreationContext();
201 201
202 request_handler_->last_error()->SetError(context, error); 202 request_handler_->last_error()->SetError(context, error);
203 run_js_.Run(callback, context, 0, nullptr); 203 run_js_.Run(callback, context, 0, nullptr);
204 204
205 bool report_if_unchecked = true; 205 bool report_if_unchecked = true;
206 request_handler_->last_error()->ClearError(context, report_if_unchecked); 206 request_handler_->last_error()->ClearError(context, report_if_unchecked);
207 } 207 }
208 208
209 } // namespace extensions 209 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_binding_js_util.h ('k') | extensions/renderer/bindings/api_binding_js_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698