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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h

Issue 2249663003: Revert of [DevTools] Rename entities in js_protocol, remove deprecated ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ~V8RuntimeAgentImpl() override; 58 ~V8RuntimeAgentImpl() override;
59 void restore(); 59 void restore();
60 60
61 // Part of the protocol. 61 // Part of the protocol.
62 void enable(ErrorString*) override; 62 void enable(ErrorString*) override;
63 void disable(ErrorString*) override; 63 void disable(ErrorString*) override;
64 void evaluate( 64 void evaluate(
65 const String16& expression, 65 const String16& expression,
66 const Maybe<String16>& objectGroup, 66 const Maybe<String16>& objectGroup,
67 const Maybe<bool>& includeCommandLineAPI, 67 const Maybe<bool>& includeCommandLineAPI,
68 const Maybe<bool>& silent, 68 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole,
69 const Maybe<int>& executionContextId, 69 const Maybe<int>& executionContextId,
70 const Maybe<bool>& returnByValue, 70 const Maybe<bool>& returnByValue,
71 const Maybe<bool>& generatePreview, 71 const Maybe<bool>& generatePreview,
72 const Maybe<bool>& userGesture, 72 const Maybe<bool>& userGesture,
73 const Maybe<bool>& awaitPromise, 73 const Maybe<bool>& awaitPromise,
74 std::unique_ptr<EvaluateCallback>) override; 74 std::unique_ptr<EvaluateCallback>) override;
75 void awaitPromise( 75 void awaitPromise(
76 const String16& promiseObjectId, 76 const String16& promiseObjectId,
77 const Maybe<bool>& returnByValue, 77 const Maybe<bool>& returnByValue,
78 const Maybe<bool>& generatePreview, 78 const Maybe<bool>& generatePreview,
79 std::unique_ptr<AwaitPromiseCallback>) override; 79 std::unique_ptr<AwaitPromiseCallback>) override;
80 void callFunctionOn( 80 void callFunctionOn(
81 const String16& objectId, 81 const String16& objectId,
82 const String16& expression, 82 const String16& expression,
83 const Maybe<protocol::Array<protocol::Runtime::CallArgument>>& optionalA rguments, 83 const Maybe<protocol::Array<protocol::Runtime::CallArgument>>& optionalA rguments,
84 const Maybe<bool>& silent, 84 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole,
85 const Maybe<bool>& returnByValue, 85 const Maybe<bool>& returnByValue,
86 const Maybe<bool>& generatePreview, 86 const Maybe<bool>& generatePreview,
87 const Maybe<bool>& userGesture, 87 const Maybe<bool>& userGesture,
88 const Maybe<bool>& awaitPromise, 88 const Maybe<bool>& awaitPromise,
89 std::unique_ptr<CallFunctionOnCallback>) override; 89 std::unique_ptr<CallFunctionOnCallback>) override;
90 void releaseObject(ErrorString*, const String16& objectId) override; 90 void releaseObject(ErrorString*, const String16& objectId) override;
91 void getProperties(ErrorString*, 91 void getProperties(ErrorString*,
92 const String16& objectId, 92 const String16& objectId,
93 const Maybe<bool>& ownProperties, 93 const Maybe<bool>& ownProperties,
94 const Maybe<bool>& accessorPropertiesOnly, 94 const Maybe<bool>& accessorPropertiesOnly,
95 const Maybe<bool>& generatePreview, 95 const Maybe<bool>& generatePreview,
96 std::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, 96 std::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result,
97 Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* i nternalProperties, 97 Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* i nternalProperties,
98 Maybe<protocol::Runtime::ExceptionDetails>*) override; 98 Maybe<protocol::Runtime::ExceptionDetails>*) override;
99 void releaseObjectGroup(ErrorString*, const String16& objectGroup) override; 99 void releaseObjectGroup(ErrorString*, const String16& objectGroup) override;
100 void runIfWaitingForDebugger(ErrorString*) override; 100 void run(ErrorString*) override;
101 void setCustomObjectFormatterEnabled(ErrorString*, bool) override; 101 void setCustomObjectFormatterEnabled(ErrorString*, bool) override;
102 void discardConsoleEntries(ErrorString*) override; 102 void discardConsoleEntries(ErrorString*) override;
103 void compileScript(ErrorString*, 103 void compileScript(ErrorString*,
104 const String16& expression, 104 const String16& expression,
105 const String16& sourceURL, 105 const String16& sourceURL,
106 bool persistScript, 106 bool persistScript,
107 const Maybe<int>& executionContextId, 107 const Maybe<int>& executionContextId,
108 Maybe<String16>*, 108 Maybe<String16>*,
109 Maybe<protocol::Runtime::ExceptionDetails>*) override; 109 Maybe<protocol::Runtime::ExceptionDetails>*) override;
110 void runScript( 110 void runScript(
111 const String16&, 111 const String16&,
112 const Maybe<int>& executionContextId, 112 const Maybe<int>& executionContextId,
113 const Maybe<String16>& objectGroup, 113 const Maybe<String16>& objectGroup,
114 const Maybe<bool>& silent, 114 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole,
115 const Maybe<bool>& includeCommandLineAPI, 115 const Maybe<bool>& includeCommandLineAPI,
116 const Maybe<bool>& returnByValue, 116 const Maybe<bool>& returnByValue,
117 const Maybe<bool>& generatePreview, 117 const Maybe<bool>& generatePreview,
118 const Maybe<bool>& awaitPromise, 118 const Maybe<bool>& awaitPromise,
119 std::unique_ptr<RunScriptCallback>) override; 119 std::unique_ptr<RunScriptCallback>) override;
120 120
121 void reset(); 121 void reset();
122 void reportExecutionContextCreated(InspectedContext*); 122 void reportExecutionContextCreated(InspectedContext*);
123 void reportExecutionContextDestroyed(InspectedContext*); 123 void reportExecutionContextDestroyed(InspectedContext*);
124 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec t, std::unique_ptr<protocol::DictionaryValue> hints); 124 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec t, std::unique_ptr<protocol::DictionaryValue> hints);
125 void messageAdded(V8ConsoleMessage*); 125 void messageAdded(V8ConsoleMessage*);
126 bool enabled() const { return m_enabled; } 126 bool enabled() const { return m_enabled; }
127 127
128 private: 128 private:
129 void reportMessage(V8ConsoleMessage*, bool generatePreview); 129 void reportMessage(V8ConsoleMessage*, bool generatePreview);
130 130
131 V8InspectorSessionImpl* m_session; 131 V8InspectorSessionImpl* m_session;
132 protocol::DictionaryValue* m_state; 132 protocol::DictionaryValue* m_state;
133 protocol::Runtime::Frontend m_frontend; 133 protocol::Runtime::Frontend m_frontend;
134 V8InspectorImpl* m_inspector; 134 V8InspectorImpl* m_inspector;
135 bool m_enabled; 135 bool m_enabled;
136 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi ledScripts; 136 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi ledScripts;
137 }; 137 };
138 138
139 } // namespace blink 139 } // namespace blink
140 140
141 #endif // V8RuntimeAgentImpl_h 141 #endif // V8RuntimeAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698