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

Side by Side Diff: third_party/WebKit/Source/core/probe/CoreProbes.h

Issue 2873713002: [DevTools] added creation stack for event listeners without scheduled stack
Patch Set: added a test Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 namespace probe { 49 namespace probe {
50 50
51 class CORE_EXPORT AsyncTask { 51 class CORE_EXPORT AsyncTask {
52 STACK_ALLOCATED(); 52 STACK_ALLOCATED();
53 53
54 public: 54 public:
55 AsyncTask(ExecutionContext*, 55 AsyncTask(ExecutionContext*,
56 void* task, 56 void* task,
57 const char* step = nullptr, 57 const char* step = nullptr,
58 bool enabled = true); 58 bool enabled = true,
59 bool optional = false);
59 ~AsyncTask(); 60 ~AsyncTask();
60 61
61 private: 62 private:
62 ThreadDebugger* debugger_; 63 ThreadDebugger* debugger_;
63 void* task_; 64 void* task_;
64 bool recurring_; 65 bool recurring_;
65 }; 66 };
66 67
67 // Called from generated instrumentation code. 68 // Called from generated instrumentation code.
68 inline CoreProbeSink* ToCoreProbeSink(LocalFrame* frame) { 69 inline CoreProbeSink* ToCoreProbeSink(LocalFrame* frame) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 unsigned long identifier, 113 unsigned long identifier,
113 const ResourceResponse&, 114 const ResourceResponse&,
114 Resource*); 115 Resource*);
115 116
116 } // namespace probe 117 } // namespace probe
117 } // namespace blink 118 } // namespace blink
118 119
119 #include "core/CoreProbesInl.h" 120 #include "core/CoreProbesInl.h"
120 121
121 #endif // !defined(CoreProbes_h) 122 #endif // !defined(CoreProbes_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698