| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2014 Google Inc. All rights reserved. | 2  * Copyright (C) 2014 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 28 matching lines...) Expand all  Loading... | 
| 39 | 39 | 
| 40 namespace WebCore { | 40 namespace WebCore { | 
| 41 | 41 | 
| 42 class GeolocationController; | 42 class GeolocationController; | 
| 43 | 43 | 
| 44 typedef String ErrorString; | 44 typedef String ErrorString; | 
| 45 | 45 | 
| 46 class GeolocationInspectorAgent FINAL : public InspectorBaseAgent<GeolocationIns
    pectorAgent>, public InspectorBackendDispatcher::GeolocationCommandHandler { | 46 class GeolocationInspectorAgent FINAL : public InspectorBaseAgent<GeolocationIns
    pectorAgent>, public InspectorBackendDispatcher::GeolocationCommandHandler { | 
| 47     WTF_MAKE_NONCOPYABLE(GeolocationInspectorAgent); | 47     WTF_MAKE_NONCOPYABLE(GeolocationInspectorAgent); | 
| 48 public: | 48 public: | 
| 49     static PassOwnPtr<GeolocationInspectorAgent> create(); | 49     static PassOwnPtrWillBeRawPtr<GeolocationInspectorAgent> create(); | 
| 50     virtual ~GeolocationInspectorAgent(); | 50     virtual ~GeolocationInspectorAgent(); | 
|  | 51     virtual void trace(Visitor*) OVERRIDE; | 
| 51 | 52 | 
| 52     // Protocol methods. | 53     // Protocol methods. | 
| 53     virtual void setGeolocationOverride(ErrorString*, const double*, const doubl
    e*, const double*) OVERRIDE; | 54     virtual void setGeolocationOverride(ErrorString*, const double*, const doubl
    e*, const double*) OVERRIDE; | 
| 54     virtual void clearGeolocationOverride(ErrorString*) OVERRIDE; | 55     virtual void clearGeolocationOverride(ErrorString*) OVERRIDE; | 
| 55 | 56 | 
| 56     // Instrumentation method. | 57     // Instrumentation method. | 
| 57     GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); | 58     GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); | 
| 58 | 59 | 
| 59     void AddController(GeolocationController*); | 60     void AddController(GeolocationController*); | 
| 60     void RemoveController(GeolocationController*); | 61     void RemoveController(GeolocationController*); | 
| 61 | 62 | 
| 62 private: | 63 private: | 
| 63     GeolocationInspectorAgent(); | 64     GeolocationInspectorAgent(); | 
| 64     WTF::HashSet<GeolocationController*> m_controllers; | 65     WTF::HashSet<GeolocationController*> m_controllers; | 
| 65     bool m_geolocationOverridden; | 66     bool m_geolocationOverridden; | 
| 66     Persistent<GeolocationPosition> m_geolocationPosition; | 67     PersistentWillBeMember<GeolocationPosition> m_geolocationPosition; | 
| 67     Persistent<GeolocationPosition> m_platformGeolocationPosition; | 68     PersistentWillBeMember<GeolocationPosition> m_platformGeolocationPosition; | 
| 68 }; | 69 }; | 
| 69 | 70 | 
| 70 | 71 | 
| 71 } // namespace WebCore | 72 } // namespace WebCore | 
| 72 | 73 | 
| 73 | 74 | 
| 74 #endif // !defined(GeolocationInspectorAgent_h) | 75 #endif // !defined(GeolocationInspectorAgent_h) | 
| OLD | NEW | 
|---|