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

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

Issue 1308273007: Make classes and structures in core/inspector fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 30 matching lines...) Expand all
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class InspectorFrontend; 44 class InspectorFrontend;
45 class InspectorCompositeState; 45 class InspectorCompositeState;
46 class InspectorState; 46 class InspectorState;
47 class InstrumentingAgents; 47 class InstrumentingAgents;
48 class LocalFrame; 48 class LocalFrame;
49 49
50 class CORE_EXPORT InspectorAgent : public NoBaseWillBeGarbageCollectedFinalized< InspectorAgent> { 50 class CORE_EXPORT InspectorAgent : public NoBaseWillBeGarbageCollectedFinalized< InspectorAgent> {
51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorAgent);
51 public: 52 public:
52 explicit InspectorAgent(const String&); 53 explicit InspectorAgent(const String&);
53 virtual ~InspectorAgent(); 54 virtual ~InspectorAgent();
54 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
55 56
56 virtual void init() { } 57 virtual void init() { }
57 virtual void setFrontend(InspectorFrontend*) = 0; 58 virtual void setFrontend(InspectorFrontend*) = 0;
58 virtual void clearFrontend() = 0; 59 virtual void clearFrontend() = 0;
59 virtual void disable(ErrorString*) { } 60 virtual void disable(ErrorString*) { }
60 virtual void restore() { } 61 virtual void restore() { }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 }; 136 };
136 137
137 inline bool asBool(const bool* const b) 138 inline bool asBool(const bool* const b)
138 { 139 {
139 return b ? *b : false; 140 return b ? *b : false;
140 } 141 }
141 142
142 } // namespace blink 143 } // namespace blink
143 144
144 #endif // !defined(InspectorBaseAgent_h) 145 #endif // !defined(InspectorBaseAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptHostClient.h ('k') | Source/core/inspector/InspectorCSSAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698