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

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

Issue 1745423002: DevTools: migrate protocol values from RefPtr to OwnPtr. (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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8Debugger_h 5 #ifndef V8Debugger_h
6 #define V8Debugger_h 6 #define V8Debugger_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/inspector_protocol/Frontend.h" 9 #include "platform/inspector_protocol/Frontend.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
11 #include "wtf/PassOwnPtr.h" 11 #include "wtf/PassOwnPtr.h"
12 12
13 #include <v8.h> 13 #include <v8.h>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class V8DebuggerClient; 17 class V8DebuggerClient;
18 class V8StackTrace; 18 class V8StackTrace;
19 19
20 namespace protocol { 20 namespace protocol {
21 class DictionaryValue; 21 class DictionaryValue;
22 } 22 }
23 23
24 class PLATFORM_EXPORT V8Debugger { 24 class PLATFORM_EXPORT V8Debugger {
25 USING_FAST_MALLOC(V8Debugger); 25 USING_FAST_MALLOC(V8Debugger);
26 public: 26 public:
27 template <typename T> 27 template <typename T>
28 class Agent { 28 class Agent {
29 public: 29 public:
30 virtual void setInspectorState(PassRefPtr<protocol::DictionaryValue>) = 0; 30 virtual void setInspectorState(protocol::DictionaryValue*) = 0;
31 virtual void setFrontend(T*) = 0; 31 virtual void setFrontend(T*) = 0;
32 virtual void clearFrontend() = 0; 32 virtual void clearFrontend() = 0;
33 virtual void restore() = 0; 33 virtual void restore() = 0;
34 }; 34 };
35 35
36 static PassOwnPtr<V8Debugger> create(v8::Isolate*, V8DebuggerClient*); 36 static PassOwnPtr<V8Debugger> create(v8::Isolate*, V8DebuggerClient*);
37 virtual ~V8Debugger() { } 37 virtual ~V8Debugger() { }
38 38
39 // Each v8::Context is a part of a group. The group id is used to find appro apriate 39 // Each v8::Context is a part of a group. The group id is used to find appro apriate
40 // V8DebuggerAgent to notify about events in the context. 40 // V8DebuggerAgent to notify about events in the context.
41 // |contextGroupId| must be non-0. 41 // |contextGroupId| must be non-0.
42 static void setContextDebugData(v8::Local<v8::Context>, const String& type, int contextGroupId); 42 static void setContextDebugData(v8::Local<v8::Context>, const String& type, int contextGroupId);
43 static int contextId(v8::Local<v8::Context>); 43 static int contextId(v8::Local<v8::Context>);
44 44
45 static v8::Local<v8::Symbol> commandLineAPISymbol(v8::Isolate*); 45 static v8::Local<v8::Symbol> commandLineAPISymbol(v8::Isolate*);
46 static bool isCommandLineAPIMethod(const AtomicString& name); 46 static bool isCommandLineAPIMethod(const AtomicString& name);
47 47
48 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) = 0; 48 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) = 0;
49 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0; 49 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0;
50 }; 50 };
51 51
52 } // namespace blink 52 } // namespace blink
53 53
54 54
55 #endif // V8Debugger_h 55 #endif // V8Debugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698