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

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

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
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_API_BINDING_HOOKS_DELEGATE_H_ 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_DELEGATE_H_
6 #define EXTENSIONS_RENDERER_API_BINDING_HOOKS_DELEGATE_H_ 6 #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_DELEGATE_H_
7 7
8 #include "extensions/renderer/api_binding_hooks.h" 8 #include "extensions/renderer/bindings/api_binding_hooks.h"
9 #include "extensions/renderer/api_binding_types.h" 9 #include "extensions/renderer/bindings/api_binding_types.h"
10 #include "v8/include/v8.h" 10 #include "v8/include/v8.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 class APITypeReferenceMap; 13 class APITypeReferenceMap;
14 14
15 // A per-API set of custom hooks to override the default behavior. 15 // A per-API set of custom hooks to override the default behavior.
16 class APIBindingHooksDelegate { 16 class APIBindingHooksDelegate {
17 public: 17 public:
18 virtual ~APIBindingHooksDelegate(); 18 virtual ~APIBindingHooksDelegate();
19 19
(...skipping 15 matching lines...) Expand all
35 35
36 // Allows custom implementations to add additional properties or types to an 36 // Allows custom implementations to add additional properties or types to an
37 // API object. 37 // API object.
38 virtual void InitializeTemplate(v8::Isolate* isolate, 38 virtual void InitializeTemplate(v8::Isolate* isolate,
39 v8::Local<v8::ObjectTemplate> object_template, 39 v8::Local<v8::ObjectTemplate> object_template,
40 const APITypeReferenceMap& type_refs) {} 40 const APITypeReferenceMap& type_refs) {}
41 }; 41 };
42 42
43 } // namespace extensions 43 } // namespace extensions
44 44
45 #endif // EXTENSIONS_RENDERER_API_BINDING_HOOKS_DELEGATE_H_ 45 #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_binding_hooks.cc ('k') | extensions/renderer/bindings/api_binding_hooks_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698