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

Side by Side Diff: Source/bindings/v8/V8PerContextData.h

Issue 13799007: Support for selective DOM activity logging, based on IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed bindings tests output, temporarily, to work around diff difficulty. Created 7 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
« no previous file with comments | « Source/bindings/v8/V8Binding.cpp ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return m_activityLogger; 99 return m_activityLogger;
100 } 100 }
101 101
102 void setActivityLogger(V8DOMActivityLogger* logger) 102 void setActivityLogger(V8DOMActivityLogger* logger)
103 { 103 {
104 m_activityLogger = logger; 104 m_activityLogger = logger;
105 } 105 }
106 106
107 private: 107 private:
108 explicit V8PerContextData(v8::Persistent<v8::Context> context) 108 explicit V8PerContextData(v8::Persistent<v8::Context> context)
109 : m_context(context) 109 : m_activityLogger(0), m_context(context)
110 { 110 {
111 } 111 }
112 112
113 void dispose(); 113 void dispose();
114 114
115 v8::Local<v8::Object> createWrapperFromCacheSlowCase(WrapperTypeInfo*); 115 v8::Local<v8::Object> createWrapperFromCacheSlowCase(WrapperTypeInfo*);
116 v8::Local<v8::Function> constructorForTypeSlowCase(WrapperTypeInfo*); 116 v8::Local<v8::Function> constructorForTypeSlowCase(WrapperTypeInfo*);
117 117
118 // For each possible type of wrapper, we keep a boilerplate object. 118 // For each possible type of wrapper, we keep a boilerplate object.
119 // The boilerplate is used to create additional wrappers of the same type. 119 // The boilerplate is used to create additional wrappers of the same type.
(...skipping 15 matching lines...) Expand all
135 135
136 class V8PerContextDebugData { 136 class V8PerContextDebugData {
137 public: 137 public:
138 static bool setContextDebugData(v8::Handle<v8::Context>, const char* worldNa me, int debugId); 138 static bool setContextDebugData(v8::Handle<v8::Context>, const char* worldNa me, int debugId);
139 static int contextDebugId(v8::Handle<v8::Context>); 139 static int contextDebugId(v8::Handle<v8::Context>);
140 }; 140 };
141 141
142 } // namespace WebCore 142 } // namespace WebCore
143 143
144 #endif // V8PerContextData_h 144 #endif // V8PerContextData_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8Binding.cpp ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698