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

Side by Side Diff: Source/core/frame/Console.h

Issue 206093005: Oilpan: move Console objects to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/frame/Console.cpp » ('j') | Source/core/frame/ConsoleBase.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef Console_h 29 #ifndef Console_h
30 #define Console_h 30 #define Console_h
31 31
32 #include "bindings/v8/ScriptState.h" 32 #include "bindings/v8/ScriptState.h"
33 #include "bindings/v8/ScriptWrappable.h" 33 #include "bindings/v8/ScriptWrappable.h"
34 #include "core/frame/ConsoleBase.h" 34 #include "core/frame/ConsoleBase.h"
35 #include "core/frame/DOMWindowProperty.h" 35 #include "core/frame/DOMWindowProperty.h"
36 #include "heap/Handle.h"
36 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
37 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
38 #include "wtf/RefCounted.h" 39 #include "wtf/RefCounted.h"
39 40
40 namespace WebCore { 41 namespace WebCore {
41 42
42 class LocalFrame; 43 class LocalFrame;
43 class MemoryInfo; 44 class MemoryInfo;
44 class Page; 45 class Page;
45 class ScriptArguments; 46 class ScriptArguments;
46 47
47 class Console FINAL : public RefCounted<Console>, public ConsoleBase, public Scr iptWrappable, public DOMWindowProperty { 48 class Console FINAL : public ConsoleBase,
49 #if !ENABLE(OILPAN)
50 public RefCounted<Console>,
51 #endif
52 public ScriptWrappable,
53 public DOMWindowProperty {
48 public: 54 public:
55 #if !ENABLE(OILPAN)
49 using RefCounted<Console>::ref; 56 using RefCounted<Console>::ref;
50 using RefCounted<Console>::deref; 57 using RefCounted<Console>::deref;
58 #endif
51 59
52 static PassRefPtr<Console> create(LocalFrame* frame) { return adoptRef(new C onsole(frame)); } 60 static PassRefPtrWillBeRawPtr<Console> create(LocalFrame* frame)
61 {
62 return adoptRefWillBeNoop(new Console(frame));
63 }
53 virtual ~Console(); 64 virtual ~Console();
54 65
55 PassRefPtrWillBeRawPtr<MemoryInfo> memory() const; 66 PassRefPtrWillBeRawPtr<MemoryInfo> memory() const;
56 67
68 void trace(Visitor*) OVERRIDE;
69
57 protected: 70 protected:
58 virtual ExecutionContext* context() OVERRIDE; 71 virtual ExecutionContext* context() OVERRIDE;
59 virtual void reportMessageToClient(MessageLevel, const String& message, Pass RefPtr<ScriptCallStack>) OVERRIDE; 72 virtual void reportMessageToClient(MessageLevel, const String& message, Pass RefPtr<ScriptCallStack>) OVERRIDE;
60 73
61 private: 74 private:
62 explicit Console(LocalFrame*); 75 explicit Console(LocalFrame*);
63 76
77 #if !ENABLE(OILPAN)
64 virtual void refConsole() OVERRIDE { ref(); } 78 virtual void refConsole() OVERRIDE { ref(); }
65 virtual void derefConsole() OVERRIDE { deref(); } 79 virtual void derefConsole() OVERRIDE { deref(); }
80 #endif
66 }; 81 };
67 82
68 } // namespace WebCore 83 } // namespace WebCore
69 84
70 #endif // Console_h 85 #endif // Console_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/Console.cpp » ('j') | Source/core/frame/ConsoleBase.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698