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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorInspectorAgent.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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 #define InspectorInspectorAgent_h 31 #define InspectorInspectorAgent_h
32 32
33 #include "core/CoreExport.h" 33 #include "core/CoreExport.h"
34 #include "core/inspector/InspectorBaseAgent.h" 34 #include "core/inspector/InspectorBaseAgent.h"
35 #include "wtf/PassOwnPtr.h" 35 #include "wtf/PassOwnPtr.h"
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class LocalFrame; 40 class LocalFrame;
41 class JSONObject; 41
42 namespace protocol {
43 class DictionaryValue;
44 }
42 45
43 typedef String ErrorString; 46 typedef String ErrorString;
44 47
45 class CORE_EXPORT InspectorInspectorAgent final : public InspectorBaseAgent<Insp ectorInspectorAgent, protocol::Frontend::Inspector>, public protocol::Dispatcher ::InspectorCommandHandler { 48 class CORE_EXPORT InspectorInspectorAgent final : public InspectorBaseAgent<Insp ectorInspectorAgent, protocol::Frontend::Inspector>, public protocol::Dispatcher ::InspectorCommandHandler {
46 WTF_MAKE_NONCOPYABLE(InspectorInspectorAgent); 49 WTF_MAKE_NONCOPYABLE(InspectorInspectorAgent);
47 public: 50 public:
48 static PassOwnPtrWillBeRawPtr<InspectorInspectorAgent> create() 51 static PassOwnPtrWillBeRawPtr<InspectorInspectorAgent> create()
49 { 52 {
50 return adoptPtrWillBeNoop(new InspectorInspectorAgent()); 53 return adoptPtrWillBeNoop(new InspectorInspectorAgent());
51 } 54 }
52 55
53 ~InspectorInspectorAgent() override; 56 ~InspectorInspectorAgent() override;
54 57
55 // Inspector front-end API. 58 // Inspector front-end API.
56 void enable(ErrorString*) override; 59 void enable(ErrorString*) override;
57 60
58 // InspectorAgent overrides. 61 // InspectorAgent overrides.
59 void disable(ErrorString*) override; 62 void disable(ErrorString*) override;
60 void restore() override; 63 void restore() override;
61 64
62 // Generic code called from custom implementations. 65 // Generic code called from custom implementations.
63 void evaluateForTestInFrontend(long testCallId, const String& script); 66 void evaluateForTestInFrontend(long testCallId, const String& script);
64 67
65 void inspect(PassOwnPtr<protocol::Runtime::RemoteObject> objectToInspect, Pa ssRefPtr<JSONObject> hints); 68 void inspect(PassOwnPtr<protocol::Runtime::RemoteObject> objectToInspect, Pa ssRefPtr<protocol::DictionaryValue> hints);
66 69
67 private: 70 private:
68 InspectorInspectorAgent(); 71 InspectorInspectorAgent();
69 72
70 Vector<std::pair<long, String>> m_pendingEvaluateTestCommands; 73 Vector<std::pair<long, String>> m_pendingEvaluateTestCommands;
71 }; 74 };
72 75
73 } // namespace blink 76 } // namespace blink
74 77
75 #endif // !defined(InspectorInspectorAgent_h) 78 #endif // !defined(InspectorInspectorAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698