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

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

Issue 2139543002: [DevTools] Report console API calls through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const Maybe<String16>& objectGroup, 109 const Maybe<String16>& objectGroup,
110 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, 110 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole,
111 const Maybe<bool>& includeCommandLineAPI, 111 const Maybe<bool>& includeCommandLineAPI,
112 std::unique_ptr<protocol::Runtime::RemoteObject>* result, 112 std::unique_ptr<protocol::Runtime::RemoteObject>* result,
113 Maybe<protocol::Runtime::ExceptionDetails>*) override; 113 Maybe<protocol::Runtime::ExceptionDetails>*) override;
114 114
115 void reset(); 115 void reset();
116 void reportExecutionContextCreated(InspectedContext*); 116 void reportExecutionContextCreated(InspectedContext*);
117 void reportExecutionContextDestroyed(InspectedContext*); 117 void reportExecutionContextDestroyed(InspectedContext*);
118 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec t, std::unique_ptr<protocol::DictionaryValue> hints); 118 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec t, std::unique_ptr<protocol::DictionaryValue> hints);
119 void exceptionMessageAdded(V8ConsoleMessage*); 119 void messageAdded(V8ConsoleMessage*);
120 120
121 private: 121 private:
122 void reportMessage(V8ConsoleMessage*, bool generatePreview); 122 void reportMessage(V8ConsoleMessage*, bool generatePreview);
123 123
124 V8InspectorSessionImpl* m_session; 124 V8InspectorSessionImpl* m_session;
125 protocol::DictionaryValue* m_state; 125 protocol::DictionaryValue* m_state;
126 protocol::Runtime::Frontend m_frontend; 126 protocol::Runtime::Frontend m_frontend;
127 V8DebuggerImpl* m_debugger; 127 V8DebuggerImpl* m_debugger;
128 bool m_enabled; 128 bool m_enabled;
129 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi ledScripts; 129 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi ledScripts;
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif // V8RuntimeAgentImpl_h 134 #endif // V8RuntimeAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698