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

Side by Side Diff: Source/core/inspector/InjectedScript.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef InjectedScript_h 31 #ifndef InjectedScript_h
32 #define InjectedScript_h 32 #define InjectedScript_h
33 33
34 #include "bindings/core/v8/ScriptValue.h" 34 #include "bindings/core/v8/ScriptValue.h"
35 #include "core/InspectorTypeBuilder.h" 35 #include "core/InspectorTypeBuilder.h"
36 #include "core/inspector/InjectedScriptManager.h" 36 #include "core/inspector/InjectedScriptManager.h"
37 #include "core/inspector/InjectedScriptNative.h" 37 #include "core/inspector/InjectedScriptNative.h"
38 #include "wtf/Allocator.h"
38 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
39 #include <v8.h> 40 #include <v8.h>
40 41
41 namespace blink { 42 namespace blink {
42 43
43 class JSONValue; 44 class JSONValue;
44 class RemoteObjectId; 45 class RemoteObjectId;
45 class ScriptFunctionCall; 46 class ScriptFunctionCall;
46 47
47 typedef String ErrorString; 48 typedef String ErrorString;
48 PassRefPtr<JSONValue> toJSONValue(const ScriptValue&); 49 PassRefPtr<JSONValue> toJSONValue(const ScriptValue&);
49 50
50 51
51 class InjectedScript final { 52 class InjectedScript final {
53 DISALLOW_ALLOCATION();
52 public: 54 public:
53 InjectedScript(); 55 InjectedScript();
54 ~InjectedScript(); 56 ~InjectedScript();
55 57
56 bool isEmpty() const { return m_injectedScriptObject.isEmpty(); } 58 bool isEmpty() const { return m_injectedScriptObject.isEmpty(); }
57 ScriptState* scriptState() const 59 ScriptState* scriptState() const
58 { 60 {
59 ASSERT(!isEmpty()); 61 ASSERT(!isEmpty());
60 return m_injectedScriptObject.scriptState(); 62 return m_injectedScriptObject.scriptState();
61 } 63 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void makeCallWithExceptionDetails(ScriptFunctionCall&, RefPtr<JSONValue>* re sult, RefPtr<TypeBuilder::Debugger::ExceptionDetails>*); 129 void makeCallWithExceptionDetails(ScriptFunctionCall&, RefPtr<JSONValue>* re sult, RefPtr<TypeBuilder::Debugger::ExceptionDetails>*);
128 130
129 ScriptValue m_injectedScriptObject; 131 ScriptValue m_injectedScriptObject;
130 InspectedStateAccessCheck m_inspectedStateAccessCheck; 132 InspectedStateAccessCheck m_inspectedStateAccessCheck;
131 RefPtr<InjectedScriptNative> m_native; 133 RefPtr<InjectedScriptNative> m_native;
132 }; 134 };
133 135
134 } // namespace blink 136 } // namespace blink
135 137
136 #endif 138 #endif
OLDNEW
« no previous file with comments | « Source/core/inspector/IdentifiersFactory.h ('k') | Source/core/inspector/InjectedScriptHostClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698