Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef GeofencingRegion_h | |
| 6 #define GeofencingRegion_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "platform/heap/Handle.h" | |
| 10 #include "wtf/text/WTFString.h" | |
| 11 | |
| 12 namespace WebCore { | |
| 13 | |
| 14 class GeofencingRegion : public GarbageCollectedFinalized<GeofencingRegion>, pub lic ScriptWrappable { | |
|
Peter Beverloo
2014/07/10 13:17:28
Use GarbageCollected, since you don't have a destr
Marijn Kruisselbrink
2014/07/10 15:11:01
That's what I had in PS1, it didn't compile with:
Peter Beverloo
2014/07/10 16:31:36
Aah, the String destructor. Indeed, but please jus
Marijn Kruisselbrink
2014/07/11 10:06:39
Done.
| |
| 15 WTF_MAKE_NONCOPYABLE(GeofencingRegion); | |
| 16 public: | |
| 17 void trace(Visitor*) { } | |
|
Peter Beverloo
2014/07/10 13:17:28
virtual void trace(Visitor*) { }
I personally pre
Marijn Kruisselbrink
2014/07/10 15:11:01
It seems the vast majority of code doesn't have an
Peter Beverloo
2014/07/10 16:31:36
It's my preference as a reviewer, you're welcome t
Marijn Kruisselbrink
2014/07/11 10:06:39
Done.
| |
| 18 | |
| 19 String id() const { return m_id; } | |
| 20 | |
| 21 protected: | |
| 22 GeofencingRegion() | |
|
Peter Beverloo
2014/07/10 13:17:28
This constructor isn't being used.
Marijn Kruisselbrink
2014/07/10 15:11:01
Good point, removed. If I later turn out to need i
| |
| 23 { | |
| 24 ScriptWrappable::init(this); | |
| 25 } | |
| 26 GeofencingRegion(const String& id) : m_id(id) | |
| 27 { | |
| 28 ScriptWrappable::init(this); | |
| 29 } | |
| 30 | |
| 31 private: | |
| 32 String m_id; | |
| 33 }; | |
| 34 | |
| 35 } // namespace WebCore | |
| 36 | |
| 37 #endif | |
| OLD | NEW |