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

Side by Side Diff: extensions/renderer/bindings/api_binding_hooks.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 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_HOOKS_H_ 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_H_
6 #define EXTENSIONS_RENDERER_API_BINDING_HOOKS_H_ 6 #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "extensions/renderer/api_binding_types.h" 12 #include "extensions/renderer/bindings/api_binding_types.h"
13 #include "v8/include/v8.h" 13 #include "v8/include/v8.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 class APIBindingHooksDelegate; 16 class APIBindingHooksDelegate;
17 class APITypeReferenceMap; 17 class APITypeReferenceMap;
18 class APISignature; 18 class APISignature;
19 19
20 // A class to register custom hooks for given API calls that need different 20 // A class to register custom hooks for given API calls that need different
21 // handling. An instance exists for a single API, but can be used across 21 // handling. An instance exists for a single API, but can be used across
22 // multiple contexts (but only on the same thread). 22 // multiple contexts (but only on the same thread).
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // script is disabled. 95 // script is disabled.
96 binding::RunJSFunctionSync run_js_; 96 binding::RunJSFunctionSync run_js_;
97 97
98 std::unique_ptr<APIBindingHooksDelegate> delegate_; 98 std::unique_ptr<APIBindingHooksDelegate> delegate_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(APIBindingHooks); 100 DISALLOW_COPY_AND_ASSIGN(APIBindingHooks);
101 }; 101 };
102 102
103 } // namespace extensions 103 } // namespace extensions
104 104
105 #endif // EXTENSIONS_RENDERER_API_BINDING_HOOKS_H_ 105 #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_H_
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_binding_bridge.cc ('k') | extensions/renderer/bindings/api_binding_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698