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

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

Issue 1707043002: [DevTools] Support CommandLineAPI in snippets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const bool* generatePreview, 79 const bool* generatePreview,
80 RefPtr<protocol::TypeBuilder::Runtime::RemoteObject>& result, 80 RefPtr<protocol::TypeBuilder::Runtime::RemoteObject>& result,
81 protocol::TypeBuilder::OptOutput<bool>* wasThrown) override; 81 protocol::TypeBuilder::OptOutput<bool>* wasThrown) override;
82 void releaseObject(ErrorString*, const String& objectId) override; 82 void releaseObject(ErrorString*, const String& objectId) override;
83 void getProperties(ErrorString*, const String& objectId, const bool* ownProp erties, const bool* accessorPropertiesOnly, const bool* generatePreview, RefPtr< protocol::TypeBuilder::Array<protocol::TypeBuilder::Runtime::PropertyDescriptor> >& result, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Runtime::I nternalPropertyDescriptor>>& internalProperties, RefPtr<protocol::TypeBuilder::R untime::ExceptionDetails>&) override; 83 void getProperties(ErrorString*, const String& objectId, const bool* ownProp erties, const bool* accessorPropertiesOnly, const bool* generatePreview, RefPtr< protocol::TypeBuilder::Array<protocol::TypeBuilder::Runtime::PropertyDescriptor> >& result, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Runtime::I nternalPropertyDescriptor>>& internalProperties, RefPtr<protocol::TypeBuilder::R untime::ExceptionDetails>&) override;
84 void releaseObjectGroup(ErrorString*, const String& objectGroup) override; 84 void releaseObjectGroup(ErrorString*, const String& objectGroup) override;
85 void run(ErrorString*) override; 85 void run(ErrorString*) override;
86 void isRunRequired(ErrorString*, bool* out_result) override; 86 void isRunRequired(ErrorString*, bool* out_result) override;
87 void setCustomObjectFormatterEnabled(ErrorString*, bool) override; 87 void setCustomObjectFormatterEnabled(ErrorString*, bool) override;
88 void compileScript(ErrorString*, const String& expression, const String& sou rceURL, bool persistScript, int executionContextId, protocol::TypeBuilder::OptOu tput<protocol::TypeBuilder::Runtime::ScriptId>*, RefPtr<protocol::TypeBuilder::R untime::ExceptionDetails>&) override; 88 void compileScript(ErrorString*, const String& expression, const String& sou rceURL, bool persistScript, int executionContextId, protocol::TypeBuilder::OptOu tput<protocol::TypeBuilder::Runtime::ScriptId>*, RefPtr<protocol::TypeBuilder::R untime::ExceptionDetails>&) override;
89 void runScript(ErrorString*, const protocol::TypeBuilder::Runtime::ScriptId& , int executionContextId, const String* objectGroup, const bool* doNotPauseOnExc eptionsAndMuteConsole, RefPtr<protocol::TypeBuilder::Runtime::RemoteObject>& res ult, RefPtr<protocol::TypeBuilder::Runtime::ExceptionDetails>&) override; 89 void runScript(ErrorString*, const protocol::TypeBuilder::Runtime::ScriptId& , int executionContextId, const String* objectGroup, const bool* doNotPauseOnExc eptionsAndMuteConsole, const bool* includeCommandLineAPI, RefPtr<protocol::TypeB uilder::Runtime::RemoteObject>& result, RefPtr<protocol::TypeBuilder::Runtime::E xceptionDetails>&) override;
90 90
91 V8DebuggerImpl* debugger() { return m_debugger; } 91 V8DebuggerImpl* debugger() { return m_debugger; }
92 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana ger.get(); } 92 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana ger.get(); }
93 93
94 private: 94 private:
95 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override; 95 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override;
96 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override; 96 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override;
97 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override; 97 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override;
98 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapObject(v8::Loca l<v8::Context>, v8::Local<v8::Value>, const String& groupName, bool generatePrev iew = false) override; 98 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapObject(v8::Loca l<v8::Context>, v8::Local<v8::Value>, const String& groupName, bool generatePrev iew = false) override;
99 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapTable(v8::Local <v8::Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) overrid e; 99 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapTable(v8::Local <v8::Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) overrid e;
(...skipping 10 matching lines...) Expand all
110 protocol::Frontend::Runtime* m_frontend; 110 protocol::Frontend::Runtime* m_frontend;
111 OwnPtr<InjectedScriptManager> m_injectedScriptManager; 111 OwnPtr<InjectedScriptManager> m_injectedScriptManager;
112 V8DebuggerImpl* m_debugger; 112 V8DebuggerImpl* m_debugger;
113 bool m_enabled; 113 bool m_enabled;
114 HashMap<String, OwnPtr<v8::Global<v8::Script>>> m_compiledScripts; 114 HashMap<String, OwnPtr<v8::Global<v8::Script>>> m_compiledScripts;
115 }; 115 };
116 116
117 } // namespace blink 117 } // namespace blink
118 118
119 #endif // V8RuntimeAgentImpl_h 119 #endif // V8RuntimeAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698