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

Side by Side Diff: extensions/renderer/web_request_hooks.cc

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 5 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
« no previous file with comments | « extensions/renderer/web_request_hooks.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/web_request_hooks.h" 5 #include "extensions/renderer/web_request_hooks.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "content/public/child/v8_value_converter.h" 8 #include "content/public/child/v8_value_converter.h"
9 #include "extensions/common/extension_api.h" 9 #include "extensions/common/extension_api.h"
10 #include "extensions/renderer/api_binding_hooks.h" 10 #include "extensions/renderer/bindings/api_binding_hooks.h"
11 #include "extensions/renderer/module_system.h" 11 #include "extensions/renderer/module_system.h"
12 #include "extensions/renderer/script_context.h" 12 #include "extensions/renderer/script_context.h"
13 #include "extensions/renderer/script_context_set.h" 13 #include "extensions/renderer/script_context_set.h"
14 #include "gin/converter.h" 14 #include "gin/converter.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 WebRequestHooks::WebRequestHooks() {} 18 WebRequestHooks::WebRequestHooks() {}
19 WebRequestHooks::~WebRequestHooks() = default; 19 WebRequestHooks::~WebRequestHooks() = default;
20 20
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 v8::Undefined(isolate), // opt_argSchemas are ignored. 68 v8::Undefined(isolate), // opt_argSchemas are ignored.
69 extra_parameters_spec, 69 extra_parameters_spec,
70 // opt_eventOptions and opt_webViewInstanceId are ignored. 70 // opt_eventOptions and opt_webViewInstanceId are ignored.
71 }; 71 };
72 *event_out = 72 *event_out =
73 run_js_sync.Run(get_event, context, arraysize(args), args).Get(isolate); 73 run_js_sync.Run(get_event, context, arraysize(args), args).Get(isolate);
74 return true; 74 return true;
75 } 75 }
76 76
77 } // namespace extensions 77 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/web_request_hooks.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698