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

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

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 22 matching lines...) Expand all
33 33
34 #include "platform/inspector_protocol/InspectorProtocol.h" 34 #include "platform/inspector_protocol/InspectorProtocol.h"
35 #include "platform/v8_inspector/InjectedScriptNative.h" 35 #include "platform/v8_inspector/InjectedScriptNative.h"
36 #include "platform/v8_inspector/InspectedContext.h" 36 #include "platform/v8_inspector/InspectedContext.h"
37 #include "platform/v8_inspector/V8Console.h" 37 #include "platform/v8_inspector/V8Console.h"
38 #include "platform/v8_inspector/V8Debugger.h" 38 #include "platform/v8_inspector/V8Debugger.h"
39 #include "platform/v8_inspector/protocol/Runtime.h" 39 #include "platform/v8_inspector/protocol/Runtime.h"
40 40
41 #include <v8.h> 41 #include <v8.h>
42 42
43 namespace blink { 43 namespace v8_inspector {
44 44
45 class RemoteObjectId; 45 class RemoteObjectId;
46 class V8FunctionCall; 46 class V8FunctionCall;
47 class V8InspectorImpl; 47 class V8InspectorImpl;
48 class V8InspectorSessionImpl; 48 class V8InspectorSessionImpl;
49 49
50 namespace protocol { 50 namespace protocol = blink::protocol;
51 class DictionaryValue; 51 using blink::protocol::Maybe;
52 }
53
54 using protocol::Maybe;
55 52
56 class InjectedScript final { 53 class InjectedScript final {
57 PROTOCOL_DISALLOW_COPY(InjectedScript); 54 PROTOCOL_DISALLOW_COPY(InjectedScript);
58 public: 55 public:
59 static std::unique_ptr<InjectedScript> create(InspectedContext*); 56 static std::unique_ptr<InjectedScript> create(InspectedContext*);
60 ~InjectedScript(); 57 ~InjectedScript();
61 58
62 InspectedContext* context() const { return m_context; } 59 InspectedContext* context() const { return m_context; }
63 60
64 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, st d::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, M aybe<protocol::Runtime::ExceptionDetails>*); 61 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, st d::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, M aybe<protocol::Runtime::ExceptionDetails>*);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 v8::MaybeLocal<v8::Value> wrapValue(ErrorString*, v8::Local<v8::Value>, cons t String16& groupName, bool forceValueType, bool generatePreview) const; 159 v8::MaybeLocal<v8::Value> wrapValue(ErrorString*, v8::Local<v8::Value>, cons t String16& groupName, bool forceValueType, bool generatePreview) const;
163 v8::Local<v8::Object> commandLineAPI(); 160 v8::Local<v8::Object> commandLineAPI();
164 161
165 InspectedContext* m_context; 162 InspectedContext* m_context;
166 v8::Global<v8::Value> m_value; 163 v8::Global<v8::Value> m_value;
167 v8::Global<v8::Value> m_lastEvaluationResult; 164 v8::Global<v8::Value> m_lastEvaluationResult;
168 std::unique_ptr<InjectedScriptNative> m_native; 165 std::unique_ptr<InjectedScriptNative> m_native;
169 v8::Global<v8::Object> m_commandLineAPI; 166 v8::Global<v8::Object> m_commandLineAPI;
170 }; 167 };
171 168
172 } // namespace blink 169 } // namespace v8_inspector
173 170
174 #endif 171 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698