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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.h

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 22 matching lines...) Expand all
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/inspector/InspectorBaseAgent.h" 35 #include "core/inspector/InspectorBaseAgent.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class InjectedScript; 41 class InjectedScript;
42 class InjectedScriptManager; 42 class InjectedScriptManager;
43 class JSONArray;
44 class ScriptState; 43 class ScriptState;
45 class V8Debugger; 44 class V8Debugger;
46 class V8RuntimeAgent; 45 class V8RuntimeAgent;
47 46
47 namespace protocol {
48 class ListValue;
49 }
50
48 typedef String ErrorString; 51 typedef String ErrorString;
49 52
50 using protocol::Maybe; 53 using protocol::Maybe;
51 54
52 class CORE_EXPORT InspectorRuntimeAgent 55 class CORE_EXPORT InspectorRuntimeAgent
53 : public InspectorBaseAgent<InspectorRuntimeAgent, protocol::Frontend::Runti me> 56 : public InspectorBaseAgent<InspectorRuntimeAgent, protocol::Frontend::Runti me>
54 , public protocol::Dispatcher::RuntimeCommandHandler { 57 , public protocol::Dispatcher::RuntimeCommandHandler {
55 WTF_MAKE_NONCOPYABLE(InspectorRuntimeAgent); 58 WTF_MAKE_NONCOPYABLE(InspectorRuntimeAgent);
56 public: 59 public:
57 class Client { 60 class Client {
58 public: 61 public:
59 virtual ~Client() { } 62 virtual ~Client() { }
60 63
61 virtual void resumeStartup() { } 64 virtual void resumeStartup() { }
62 virtual bool isRunRequired() { return false; } 65 virtual bool isRunRequired() { return false; }
63 }; 66 };
64 67
65 ~InspectorRuntimeAgent() override; 68 ~InspectorRuntimeAgent() override;
66 69
67 // InspectorBaseAgent overrides. 70 // InspectorBaseAgent overrides.
68 void setState(PassRefPtr<JSONObject>) override; 71 void setState(PassRefPtr<protocol::DictionaryValue>) override;
69 void setFrontend(protocol::Frontend*) override; 72 void setFrontend(protocol::Frontend*) override;
70 void clearFrontend() override; 73 void clearFrontend() override;
71 void restore() override; 74 void restore() override;
72 75
73 // Part of the protocol. 76 // Part of the protocol.
74 void evaluate(ErrorString*, const String& expression, const Maybe<String>& o bjectGroup, const Maybe<bool>& includeCommandLineAPI, const Maybe<bool>& doNotPa useOnExceptionsAndMuteConsole, const Maybe<int>& contextId, const Maybe<bool>& r eturnByValue, const Maybe<bool>& generatePreview, OwnPtr<protocol::Runtime::Remo teObject>* result, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::ExceptionDet ails>*) override; 77 void evaluate(ErrorString*, const String& expression, const Maybe<String>& o bjectGroup, const Maybe<bool>& includeCommandLineAPI, const Maybe<bool>& doNotPa useOnExceptionsAndMuteConsole, const Maybe<int>& contextId, const Maybe<bool>& r eturnByValue, const Maybe<bool>& generatePreview, OwnPtr<protocol::Runtime::Remo teObject>* result, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::ExceptionDet ails>*) override;
75 void callFunctionOn(ErrorString*, const String& objectId, const String& func tionDeclaration, const Maybe<protocol::Array<protocol::Runtime::CallArgument>>& arguments, const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, const Maybe< bool>& returnByValue, const Maybe<bool>& generatePreview, OwnPtr<protocol::Runti me::RemoteObject>* result, Maybe<bool>* wasThrown) override; 78 void callFunctionOn(ErrorString*, const String& objectId, const String& func tionDeclaration, const Maybe<protocol::Array<protocol::Runtime::CallArgument>>& arguments, const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, const Maybe< bool>& returnByValue, const Maybe<bool>& generatePreview, OwnPtr<protocol::Runti me::RemoteObject>* result, Maybe<bool>* wasThrown) override;
76 void getProperties(ErrorString*, const String& objectId, const Maybe<bool>& ownProperties, const Maybe<bool>& accessorPropertiesOnly, const Maybe<bool>& gen eratePreview, OwnPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* re sult, Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* int ernalProperties, Maybe<protocol::Runtime::ExceptionDetails>*) override; 79 void getProperties(ErrorString*, const String& objectId, const Maybe<bool>& ownProperties, const Maybe<bool>& accessorPropertiesOnly, const Maybe<bool>& gen eratePreview, OwnPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* re sult, Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* int ernalProperties, Maybe<protocol::Runtime::ExceptionDetails>*) override;
77 void releaseObject(ErrorString*, const String& objectId) override; 80 void releaseObject(ErrorString*, const String& objectId) override;
78 void releaseObjectGroup(ErrorString*, const String& objectGroup) override; 81 void releaseObjectGroup(ErrorString*, const String& objectGroup) override;
(...skipping 18 matching lines...) Expand all
97 void reportExecutionContextDestroyed(ScriptState*); 100 void reportExecutionContextDestroyed(ScriptState*);
98 101
99 bool m_enabled; 102 bool m_enabled;
100 OwnPtr<V8RuntimeAgent> m_v8RuntimeAgent; 103 OwnPtr<V8RuntimeAgent> m_v8RuntimeAgent;
101 Client* m_client; 104 Client* m_client;
102 }; 105 };
103 106
104 } // namespace blink 107 } // namespace blink
105 108
106 #endif // InspectorRuntimeAgent_h 109 #endif // InspectorRuntimeAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698