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

Side by Side Diff: gin/function_template.h

Issue 2554863002: Cleanup remaining class/struct fwd declarations (Closed)
Patch Set: Style fixes Created 4 years 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 | « dbus/bus.h ('k') | google_apis/gaia/oauth2_access_token_fetcher_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 GIN_FUNCTION_TEMPLATE_H_ 5 #ifndef GIN_FUNCTION_TEMPLATE_H_
6 #define GIN_FUNCTION_TEMPLATE_H_ 6 #define GIN_FUNCTION_TEMPLATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "gin/arguments.h" 13 #include "gin/arguments.h"
14 #include "gin/converter.h" 14 #include "gin/converter.h"
15 #include "gin/gin_export.h" 15 #include "gin/gin_export.h"
16 #include "v8/include/v8.h" 16 #include "v8/include/v8.h"
17 17
18 namespace gin { 18 namespace gin {
19 19
20 class PerIsolateData;
21
22 enum CreateFunctionTemplateFlags { 20 enum CreateFunctionTemplateFlags {
23 HolderIsFirstArgument = 1 << 0, 21 HolderIsFirstArgument = 1 << 0,
24 }; 22 };
25 23
26 namespace internal { 24 namespace internal {
27 25
28 template<typename T> 26 template<typename T>
29 struct CallbackParamTraits { 27 struct CallbackParamTraits {
30 typedef T LocalType; 28 typedef T LocalType;
31 }; 29 };
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 typedef internal::CallbackHolder<Sig> HolderT; 253 typedef internal::CallbackHolder<Sig> HolderT;
256 HolderT* holder = new HolderT(isolate, callback, callback_flags); 254 HolderT* holder = new HolderT(isolate, callback, callback_flags);
257 tmpl->SetCallAsFunctionHandler(&internal::Dispatcher<Sig>::DispatchToCallback, 255 tmpl->SetCallAsFunctionHandler(&internal::Dispatcher<Sig>::DispatchToCallback,
258 ConvertToV8<v8::Local<v8::External> >( 256 ConvertToV8<v8::Local<v8::External> >(
259 isolate, holder->GetHandle(isolate))); 257 isolate, holder->GetHandle(isolate)));
260 } 258 }
261 259
262 } // namespace gin 260 } // namespace gin
263 261
264 #endif // GIN_FUNCTION_TEMPLATE_H_ 262 #endif // GIN_FUNCTION_TEMPLATE_H_
OLDNEW
« no previous file with comments | « dbus/bus.h ('k') | google_apis/gaia/oauth2_access_token_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698