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

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

Issue 1924713002: [DevTools] Removed InjectedScriptHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-inspect-to-native
Patch Set: Created 4 years, 7 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 24 matching lines...) Expand all
35 #include "platform/inspector_protocol/TypeBuilder.h" 35 #include "platform/inspector_protocol/TypeBuilder.h"
36 #include "platform/v8_inspector/InjectedScriptNative.h" 36 #include "platform/v8_inspector/InjectedScriptNative.h"
37 #include "platform/v8_inspector/InspectedContext.h" 37 #include "platform/v8_inspector/InspectedContext.h"
38 #include "platform/v8_inspector/V8DebuggerImpl.h" 38 #include "platform/v8_inspector/V8DebuggerImpl.h"
39 #include "wtf/PassOwnPtr.h" 39 #include "wtf/PassOwnPtr.h"
40 40
41 #include <v8.h> 41 #include <v8.h>
42 42
43 namespace blink { 43 namespace blink {
44 44
45 class InjectedScriptHost;
46 class RemoteObjectId; 45 class RemoteObjectId;
47 class V8FunctionCall; 46 class V8FunctionCall;
48 class V8InspectorSessionImpl; 47 class V8InspectorSessionImpl;
49 48
50 namespace protocol { 49 namespace protocol {
51 class DictionaryValue; 50 class DictionaryValue;
52 } 51 }
53 52
54 using protocol::Maybe; 53 using protocol::Maybe;
55 54
56 class InjectedScript final { 55 class InjectedScript final {
57 PROTOCOL_DISALLOW_COPY(InjectedScript); 56 PROTOCOL_DISALLOW_COPY(InjectedScript);
58 public: 57 public:
59 static PassOwnPtr<InjectedScript> create(InspectedContext*, InjectedScriptHo st*); 58 static PassOwnPtr<InjectedScript> create(InspectedContext*);
60 ~InjectedScript(); 59 ~InjectedScript();
61 60
62 InspectedContext* context() const { return m_context; } 61 InspectedContext* context() const { return m_context; }
63 62
64 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, Ow nPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, Maybe<prot ocol::Runtime::ExceptionDetails>*); 63 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, Ow nPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, Maybe<prot ocol::Runtime::ExceptionDetails>*);
65 void releaseObject(const String16& objectId); 64 void releaseObject(const String16& objectId);
66 65
67 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const; 66 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const;
68 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const; 67 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const;
69 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S tring> property, const String16& groupName, bool forceValueType = false, bool ge neratePreview = false) const; 68 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S tring> property, const String16& groupName, bool forceValueType = false, bool ge neratePreview = false) const;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 InspectedContext* m_context; 167 InspectedContext* m_context;
169 v8::Global<v8::Value> m_value; 168 v8::Global<v8::Value> m_value;
170 v8::Global<v8::Value> m_lastEvaluationResult; 169 v8::Global<v8::Value> m_lastEvaluationResult;
171 OwnPtr<InjectedScriptNative> m_native; 170 OwnPtr<InjectedScriptNative> m_native;
172 v8::Global<v8::Object> m_commandLineAPI; 171 v8::Global<v8::Object> m_commandLineAPI;
173 }; 172 };
174 173
175 } // namespace blink 174 } // namespace blink
176 175
177 #endif 176 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698