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

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: better 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_;
66 bool started_;
65 }; 67 };
66 68
67 // Called from generated instrumentation code. 69 // Called from generated instrumentation code.
68 inline CoreProbeSink* ToCoreProbeSink(LocalFrame* frame) { 70 inline CoreProbeSink* ToCoreProbeSink(LocalFrame* frame) {
69 return frame ? frame->GetProbeSink() : nullptr; 71 return frame ? frame->GetProbeSink() : nullptr;
70 } 72 }
71 73
72 inline CoreProbeSink* ToCoreProbeSink(Document& document) { 74 inline CoreProbeSink* ToCoreProbeSink(Document& document) {
73 return document.GetProbeSink(); 75 return document.GetProbeSink();
74 } 76 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 unsigned long identifier, 114 unsigned long identifier,
113 const ResourceResponse&, 115 const ResourceResponse&,
114 Resource*); 116 Resource*);
115 117
116 } // namespace probe 118 } // namespace probe
117 } // namespace blink 119 } // namespace blink
118 120
119 #include "core/CoreProbesInl.h" 121 #include "core/CoreProbesInl.h"
120 122
121 #endif // !defined(CoreProbes_h) 123 #endif // !defined(CoreProbes_h)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp ('k') | third_party/WebKit/Source/core/probe/CoreProbes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698