summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/geolocation/GeolocationError.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/geolocation/GeolocationError.h')
-rw-r--r--chromium/third_party/WebKit/Source/modules/geolocation/GeolocationError.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/geolocation/GeolocationError.h b/chromium/third_party/WebKit/Source/modules/geolocation/GeolocationError.h
index 23ecb71aa17..f2997f119db 100644
--- a/chromium/third_party/WebKit/Source/modules/geolocation/GeolocationError.h
+++ b/chromium/third_party/WebKit/Source/modules/geolocation/GeolocationError.h
@@ -26,21 +26,22 @@
#ifndef GeolocationError_h
#define GeolocationError_h
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
-#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
-class GeolocationError : public RefCounted<GeolocationError> {
+class GeolocationError : public GarbageCollectedFinalized<GeolocationError> {
public:
enum ErrorCode {
PermissionDenied,
PositionUnavailable
};
- static PassRefPtr<GeolocationError> create(ErrorCode code, const String& message) { return adoptRef(new GeolocationError(code, message)); }
+ static GeolocationError* create(ErrorCode code, const String& message)
+ {
+ return new GeolocationError(code, message);
+ }
+ void trace(Visitor*) { }
ErrorCode code() const { return m_code; }
const String& message() const { return m_message; }