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

Side by Side Diff: Source/core/inspector/InspectorInstrumentation.h

Issue 668453003: Oilpan: Make InspectorInstrumentationCookie stack-allocated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class FrameHost; 57 class FrameHost;
58 class InspectorTimelineAgent; 58 class InspectorTimelineAgent;
59 class InstrumentingAgents; 59 class InstrumentingAgents;
60 class ThreadableLoaderClient; 60 class ThreadableLoaderClient;
61 class WorkerGlobalScope; 61 class WorkerGlobalScope;
62 class WorkerInspectorProxy; 62 class WorkerInspectorProxy;
63 63
64 #define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value; 64 #define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value;
65 65
66 class InspectorInstrumentationCookie { 66 class InspectorInstrumentationCookie {
67 STACK_ALLOCATED();
67 public: 68 public:
68 InspectorInstrumentationCookie(); 69 InspectorInstrumentationCookie();
69 InspectorInstrumentationCookie(InstrumentingAgents*, int); 70 InspectorInstrumentationCookie(InstrumentingAgents*, int);
70 InspectorInstrumentationCookie(const InspectorInstrumentationCookie&); 71 InspectorInstrumentationCookie(const InspectorInstrumentationCookie&);
71 InspectorInstrumentationCookie& operator=(const InspectorInstrumentationCook ie&); 72 InspectorInstrumentationCookie& operator=(const InspectorInstrumentationCook ie&);
72 ~InspectorInstrumentationCookie(); 73 ~InspectorInstrumentationCookie();
73 74
74 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge nts.get(); } 75 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge nts.get(); }
75 bool isValid() const { return !!m_instrumentingAgents; } 76 bool isValid() const { return !!m_instrumentingAgents; }
76 bool hasMatchingTimelineAgentId(int id) const { return m_timelineAgentId == id; } 77 bool hasMatchingTimelineAgentId(int id) const { return m_timelineAgentId == id; }
77 78
78 private: 79 private:
79 RefPtrWillBePersistent<InstrumentingAgents> m_instrumentingAgents; 80 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
80 int m_timelineAgentId; 81 int m_timelineAgentId;
81 }; 82 };
82 83
83 namespace InspectorInstrumentation { 84 namespace InspectorInstrumentation {
84 85
85 class FrontendCounter { 86 class FrontendCounter {
86 private: 87 private:
87 friend void frontendCreated(); 88 friend void frontendCreated();
88 friend void frontendDeleted(); 89 friend void frontendDeleted();
89 friend bool hasFrontends(); 90 friend bool hasFrontends();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 187
187 } // namespace blink 188 } // namespace blink
188 189
189 #include "core/InspectorInstrumentationInl.h" 190 #include "core/InspectorInstrumentationInl.h"
190 191
191 #include "core/inspector/InspectorInstrumentationCustomInl.h" 192 #include "core/inspector/InspectorInstrumentationCustomInl.h"
192 193
193 #include "core/InspectorOverridesInl.h" 194 #include "core/InspectorOverridesInl.h"
194 195
195 #endif // !defined(InspectorInstrumentation_h) 196 #endif // !defined(InspectorInstrumentation_h)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698