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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/SourceLocation.h

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (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 // 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 SourceLocation_h 5 #ifndef SourceLocation_h
6 #define SourceLocation_h 6 #define SourceLocation_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/CrossThreadCopier.h" 9 #include "platform/CrossThreadCopier.h"
10 #include "platform/v8_inspector/public/V8StackTrace.h" 10 #include "platform/v8_inspector/public/V8StackTrace.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 std::unique_ptr<SourceLocation> clone() const; // Safe to pass between threa ds. 45 std::unique_ptr<SourceLocation> clone() const; // Safe to pass between threa ds.
46 46
47 // No-op when stack trace is unknown. 47 // No-op when stack trace is unknown.
48 void toTracedValue(TracedValue*, const char* name) const; 48 void toTracedValue(TracedValue*, const char* name) const;
49 49
50 // Could be null string when stack trace is unknown. 50 // Could be null string when stack trace is unknown.
51 String toString() const; 51 String toString() const;
52 52
53 // Could be null when stack trace is unknown. 53 // Could be null when stack trace is unknown.
54 std::unique_ptr<protocol::Runtime::API::StackTrace> buildInspectorObject() c onst; 54 std::unique_ptr<v8_inspector::protocol::Runtime::API::StackTrace> buildInspe ctorObject() const;
55 55
56 private: 56 private:
57 SourceLocation(const String& url, unsigned lineNumber, unsigned columnNumber , std::unique_ptr<v8_inspector::V8StackTrace>, int scriptId); 57 SourceLocation(const String& url, unsigned lineNumber, unsigned columnNumber , std::unique_ptr<v8_inspector::V8StackTrace>, int scriptId);
58 static std::unique_ptr<SourceLocation> createFromNonEmptyV8StackTrace(std::u nique_ptr<v8_inspector::V8StackTrace>, int scriptId); 58 static std::unique_ptr<SourceLocation> createFromNonEmptyV8StackTrace(std::u nique_ptr<v8_inspector::V8StackTrace>, int scriptId);
59 59
60 String m_url; 60 String m_url;
61 unsigned m_lineNumber; 61 unsigned m_lineNumber;
62 unsigned m_columnNumber; 62 unsigned m_columnNumber;
63 std::unique_ptr<v8_inspector::V8StackTrace> m_stackTrace; 63 std::unique_ptr<v8_inspector::V8StackTrace> m_stackTrace;
64 int m_scriptId; 64 int m_scriptId;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // SourceLocation_h 69 #endif // SourceLocation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698