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

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

Issue 2831453002: [Extensions Bindings] Move custom handling to APIBindingHooksDelegate (Closed)
Patch Set: . Created 3 years, 8 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/api_binding_hooks_delegate.h" 5 #include "extensions/renderer/api_binding_hooks_delegate.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 APIBindingHooksDelegate::~APIBindingHooksDelegate() {} 9 APIBindingHooksDelegate::~APIBindingHooksDelegate() {}
10 10
11 bool APIBindingHooksDelegate::CreateCustomEvent( 11 bool APIBindingHooksDelegate::CreateCustomEvent(
12 v8::Local<v8::Context> context, 12 v8::Local<v8::Context> context,
13 const binding::RunJSFunctionSync& run_js_sync, 13 const binding::RunJSFunctionSync& run_js_sync,
14 const std::string& event_name, 14 const std::string& event_name,
15 v8::Local<v8::Value>* event_out) { 15 v8::Local<v8::Value>* event_out) {
16 return false; 16 return false;
17 } 17 }
18 18
19 APIBindingHooks::RequestResult APIBindingHooksDelegate::HandleRequest(
20 const std::string& method_name,
21 const APISignature* signature,
22 v8::Local<v8::Context> context,
23 std::vector<v8::Local<v8::Value>>* arguments,
24 const APITypeReferenceMap& refs) {
25 return APIBindingHooks::RequestResult(
26 APIBindingHooks::RequestResult::NOT_HANDLED);
27 }
28
19 } // namespace extensions 29 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/api_binding_hooks_delegate.h ('k') | extensions/renderer/api_binding_hooks_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698