OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 23 matching lines...) Expand all Loading... |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
37 #include <v8.h> | 37 #include <v8.h> |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class KURL; | 41 class KURL; |
42 | 42 |
43 class CORE_EXPORT V8DOMActivityLogger { | 43 class CORE_EXPORT V8DOMActivityLogger { |
| 44 WTF_MAKE_FAST_ALLOCATED(V8DOMActivityLogger); |
44 public: | 45 public: |
45 virtual ~V8DOMActivityLogger() { } | 46 virtual ~V8DOMActivityLogger() { } |
46 | 47 |
47 virtual void logGetter(const String& apiName) { } | 48 virtual void logGetter(const String& apiName) { } |
48 virtual void logSetter(const String& apiName, const v8::Local<v8::Value>& ne
wValue) { } | 49 virtual void logSetter(const String& apiName, const v8::Local<v8::Value>& ne
wValue) { } |
49 virtual void logMethod(const String& apiName, int argc, const v8::Local<v8::
Value>* argv) { } | 50 virtual void logMethod(const String& apiName, int argc, const v8::Local<v8::
Value>* argv) { } |
50 virtual void logEvent(const String& eventName, int argc, const String* argv)
{ } | 51 virtual void logEvent(const String& eventName, int argc, const String* argv)
{ } |
51 | 52 |
52 // Associates a logger with the world identified by worldId (worlId may be 0 | 53 // Associates a logger with the world identified by worldId (worlId may be 0 |
53 // identifying the main world) and extension ID. Extension ID is used to | 54 // identifying the main world) and extension ID. Extension ID is used to |
(...skipping 14 matching lines...) Expand all Loading... |
68 static V8DOMActivityLogger* currentActivityLogger(); | 69 static V8DOMActivityLogger* currentActivityLogger(); |
69 // Returns activity logger for current V8 context if the context belongs to | 70 // Returns activity logger for current V8 context if the context belongs to |
70 // an isolated world or 0. | 71 // an isolated world or 0. |
71 static V8DOMActivityLogger* currentActivityLoggerIfIsolatedWorld(); | 72 static V8DOMActivityLogger* currentActivityLoggerIfIsolatedWorld(); |
72 | 73 |
73 }; | 74 }; |
74 | 75 |
75 } // namespace blink | 76 } // namespace blink |
76 | 77 |
77 #endif // V8DOMActivityLogger_h | 78 #endif // V8DOMActivityLogger_h |
OLD | NEW |