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

Side by Side Diff: Source/core/inspector/ScriptCallFrame.h

Issue 688623002: [Thread-safe] Remove TracedValue::setArray (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename to ScriptCallFrame::toTracedValue. Created 6 years, 1 month 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) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 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 19 matching lines...) Expand all
30 30
31 #ifndef ScriptCallFrame_h 31 #ifndef ScriptCallFrame_h
32 #define ScriptCallFrame_h 32 #define ScriptCallFrame_h
33 33
34 #include "core/InspectorTypeBuilder.h" 34 #include "core/InspectorTypeBuilder.h"
35 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class TracedValue;
41
40 class ScriptCallFrame { 42 class ScriptCallFrame {
41 public: 43 public:
42 ScriptCallFrame(); 44 ScriptCallFrame();
43 ScriptCallFrame(const String& functionName, const String& scriptId, const St ring& scriptName, unsigned lineNumber, unsigned column = 0); 45 ScriptCallFrame(const String& functionName, const String& scriptId, const St ring& scriptName, unsigned lineNumber, unsigned column = 0);
44 ~ScriptCallFrame(); 46 ~ScriptCallFrame();
45 47
46 const String& functionName() const { return m_functionName; } 48 const String& functionName() const { return m_functionName; }
47 const String& scriptId() const { return m_scriptId; } 49 const String& scriptId() const { return m_scriptId; }
48 const String& sourceURL() const { return m_scriptName; } 50 const String& sourceURL() const { return m_scriptName; }
49 unsigned lineNumber() const { return m_lineNumber; } 51 unsigned lineNumber() const { return m_lineNumber; }
50 unsigned columnNumber() const { return m_column; } 52 unsigned columnNumber() const { return m_column; }
51 53
52 PassRefPtr<TypeBuilder::Console::CallFrame> buildInspectorObject() const; 54 PassRefPtr<TypeBuilder::Console::CallFrame> buildInspectorObject() const;
55 void toTracedValue(TracedValue*) const;
53 56
54 private: 57 private:
55 String m_functionName; 58 String m_functionName;
56 String m_scriptId; 59 String m_scriptId;
57 String m_scriptName; 60 String m_scriptName;
58 unsigned m_lineNumber; 61 unsigned m_lineNumber;
59 unsigned m_column; 62 unsigned m_column;
60 }; 63 };
61 64
62 } // namespace blink 65 } // namespace blink
63 66
64 #endif // ScriptCallFrame_h 67 #endif // ScriptCallFrame_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTraceEvents.cpp ('k') | Source/core/inspector/ScriptCallFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698