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

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

Issue 412143002: Oilpan: Prepare moving InspectorOverlayHost to Oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 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 17 matching lines...) Expand all
28 28
29 #ifndef InspectorOverlayHost_h 29 #ifndef InspectorOverlayHost_h
30 #define InspectorOverlayHost_h 30 #define InspectorOverlayHost_h
31 31
32 #include "bindings/core/v8/ScriptWrappable.h" 32 #include "bindings/core/v8/ScriptWrappable.h"
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class InspectorOverlayHost : public RefCounted<InspectorOverlayHost>, public Scr iptWrappable { 38 class InspectorOverlayHost FINAL : public RefCountedWillBeGarbageCollectedFinali zed<InspectorOverlayHost>, public ScriptWrappable {
39 public: 39 public:
40 static PassRefPtr<InspectorOverlayHost> create() 40 static PassRefPtrWillBeRawPtr<InspectorOverlayHost> create()
41 { 41 {
42 return adoptRef(new InspectorOverlayHost()); 42 return adoptRefWillBeNoop(new InspectorOverlayHost());
43 } 43 }
44 ~InspectorOverlayHost(); 44 ~InspectorOverlayHost();
45 void trace(Visitor*);
45 46
46 void resume(); 47 void resume();
47 void stepOver(); 48 void stepOver();
48 49
49 class Listener { 50 class Listener : public WillBeGarbageCollectedMixin {
50 public: 51 public:
51 virtual ~Listener() { } 52 virtual ~Listener() { }
52 virtual void overlayResumed() = 0; 53 virtual void overlayResumed() = 0;
53 virtual void overlaySteppedOver() = 0; 54 virtual void overlaySteppedOver() = 0;
54 }; 55 };
55 void setListener(Listener* listener) { m_listener = listener; } 56 void setListener(Listener* listener) { m_listener = listener; }
56 57
57 private: 58 private:
58 InspectorOverlayHost(); 59 InspectorOverlayHost();
59 60
60 Listener* m_listener; 61 RawPtrWillBeMember<Listener> m_listener;
61 }; 62 };
62 63
63 } // namespace blink 64 } // namespace blink
64 65
65 #endif // !defined(InspectorOverlayHost_h) 66 #endif // !defined(InspectorOverlayHost_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlay.h ('k') | Source/core/inspector/InspectorOverlayHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698