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

Side by Side Diff: extensions/renderer/declarative_content_hooks_delegate.h

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 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_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ 5 #ifndef EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_
6 #define EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ 6 #define EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "extensions/renderer/api_binding_hooks_delegate.h" 13 #include "extensions/renderer/bindings/api_binding_hooks_delegate.h"
14 #include "v8/include/v8.h" 14 #include "v8/include/v8.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 class APITypeReferenceMap; 17 class APITypeReferenceMap;
18 class ArgumentSpec; 18 class ArgumentSpec;
19 19
20 // Custom hooks for the declarativeContent API. 20 // Custom hooks for the declarativeContent API.
21 class DeclarativeContentHooksDelegate : public APIBindingHooksDelegate { 21 class DeclarativeContentHooksDelegate : public APIBindingHooksDelegate {
22 public: 22 public:
23 // The callback type for handling an API call. 23 // The callback type for handling an API call.
(...skipping 17 matching lines...) Expand all
41 // are passed to v8::External, we need to use unique_ptrs rather than just 41 // are passed to v8::External, we need to use unique_ptrs rather than just
42 // storing the callback directly in a vector. 42 // storing the callback directly in a vector.
43 std::vector<std::unique_ptr<HandlerCallback>> callbacks_; 43 std::vector<std::unique_ptr<HandlerCallback>> callbacks_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(DeclarativeContentHooksDelegate); 45 DISALLOW_COPY_AND_ASSIGN(DeclarativeContentHooksDelegate);
46 }; 46 };
47 47
48 } // namespace extensions 48 } // namespace extensions
49 49
50 #endif // EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_ 50 #endif // EXTENSIONS_RENDERER_DECLARATIVE_CONTENT_HOOKS_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/renderer/content_setting.cc ('k') | extensions/renderer/declarative_content_hooks_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698