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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 V8StackTrace_h 5 #ifndef V8StackTrace_h
6 #define V8StackTrace_h 6 #define V8StackTrace_h
7 7
8 #include "platform/v8_inspector/public/StringBuffer.h" 8 #include "platform/v8_inspector/public/StringBuffer.h"
9 #include "platform/v8_inspector/public/StringView.h" 9 #include "platform/v8_inspector/public/StringView.h"
10 #include "platform/v8_inspector/public/protocol/Runtime.h" 10 #include "platform/v8_inspector/public/protocol/Runtime.h"
11 11
12 #include <v8.h>
13
14 namespace v8_inspector { 12 namespace v8_inspector {
15 13
16 class V8StackTrace { 14 class V8StackTrace {
17 public: 15 public:
18 virtual bool isEmpty() const = 0; 16 virtual bool isEmpty() const = 0;
19 virtual StringView topSourceURL() const = 0; 17 virtual StringView topSourceURL() const = 0;
20 virtual int topLineNumber() const = 0; 18 virtual int topLineNumber() const = 0;
21 virtual int topColumnNumber() const = 0; 19 virtual int topColumnNumber() const = 0;
22 virtual StringView topScriptId() const = 0; 20 virtual StringView topScriptId() const = 0;
23 virtual StringView topFunctionName() const = 0; 21 virtual StringView topFunctionName() const = 0;
24 22
25 virtual ~V8StackTrace() { } 23 virtual ~V8StackTrace() { }
26 virtual std::unique_ptr<blink::protocol::Runtime::API::StackTrace> buildInsp ectorObject() const = 0; 24 virtual std::unique_ptr<protocol::Runtime::API::StackTrace> buildInspectorOb ject() const = 0;
27 virtual std::unique_ptr<StringBuffer> toString() const = 0; 25 virtual std::unique_ptr<StringBuffer> toString() const = 0;
28 26
29 // Safe to pass between threads, drops async chain. 27 // Safe to pass between threads, drops async chain.
30 virtual std::unique_ptr<V8StackTrace> clone() = 0; 28 virtual std::unique_ptr<V8StackTrace> clone() = 0;
31 }; 29 };
32 30
33 } // namespace v8_inspector 31 } // namespace v8_inspector
34 32
35 #endif // V8StackTrace_h 33 #endif // V8StackTrace_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698