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

Side by Side Diff: Source/WebCore/bindings/v8/ScriptProfile.h

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef ScriptProfile_h 31 #ifndef ScriptProfile_h
32 #define ScriptProfile_h 32 #define ScriptProfile_h
33 33
34 #include "ScriptProfileNode.h" 34 #include "ScriptProfileNode.h"
35 #include <wtf/RefCounted.h> 35 #include <wtf/RefCounted.h>
36 #include <wtf/text/WTFString.h> 36 #include <wtf/text/WTFString.h>
37 37
38 #if ENABLE(INSPECTOR)
39 #include "InspectorTypeBuilder.h" 38 #include "InspectorTypeBuilder.h"
40 #endif
41 39
42 namespace v8 { 40 namespace v8 {
43 class CpuProfile; 41 class CpuProfile;
44 } 42 }
45 43
46 namespace WebCore { 44 namespace WebCore {
47 45
48 #if ENABLE(INSPECTOR)
49 class InspectorObject; 46 class InspectorObject;
50 #endif
51 47
52 class ScriptProfile : public RefCounted<ScriptProfile> { 48 class ScriptProfile : public RefCounted<ScriptProfile> {
53 public: 49 public:
54 static PassRefPtr<ScriptProfile> create(const v8::CpuProfile* profile, doubl e idleTime) 50 static PassRefPtr<ScriptProfile> create(const v8::CpuProfile* profile, doubl e idleTime)
55 { 51 {
56 return adoptRef(new ScriptProfile(profile, idleTime)); 52 return adoptRef(new ScriptProfile(profile, idleTime));
57 } 53 }
58 virtual ~ScriptProfile(); 54 virtual ~ScriptProfile();
59 55
60 String title() const; 56 String title() const;
61 unsigned int uid() const; 57 unsigned int uid() const;
62 PassRefPtr<ScriptProfileNode> head() const; 58 PassRefPtr<ScriptProfileNode> head() const;
63 double idleTime() const; 59 double idleTime() const;
64 60
65 #if ENABLE(INSPECTOR)
66 PassRefPtr<TypeBuilder::Profiler::CPUProfileNode> buildInspectorObjectForHea d() const; 61 PassRefPtr<TypeBuilder::Profiler::CPUProfileNode> buildInspectorObjectForHea d() const;
67 PassRefPtr<TypeBuilder::Array<int> > buildInspectorObjectForSamples() const; 62 PassRefPtr<TypeBuilder::Array<int> > buildInspectorObjectForSamples() const;
68 #endif
69 63
70 private: 64 private:
71 ScriptProfile(const v8::CpuProfile* profile, double idleTime) 65 ScriptProfile(const v8::CpuProfile* profile, double idleTime)
72 : m_profile(profile) 66 : m_profile(profile)
73 , m_idleTime(idleTime) 67 , m_idleTime(idleTime)
74 {} 68 {}
75 69
76 const v8::CpuProfile* m_profile; 70 const v8::CpuProfile* m_profile;
77 double m_idleTime; 71 double m_idleTime;
78 }; 72 };
79 73
80 } // namespace WebCore 74 } // namespace WebCore
81 75
82 #endif // ScriptProfile_h 76 #endif // ScriptProfile_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698