Chromium Code Reviews| 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 typedef WillBeHeapHashSet<RawPtrWillBeMember<GeolocationController> > Geoloc ationControllers; | 65 typedef WillBeHeapHashSet<RawPtrWillBeMember<GeolocationController> > Geoloc ationControllers; |
| 65 WillBePersistentHeapHashSet<RawPtrWillBeMember<GeolocationController> > m_co ntrollers; | 66 WillBeHeapHashSet<RawPtrWillBeMember<GeolocationController> > m_controllers; |
|
haraken
2014/06/17 14:06:18
You can use GeoLocationControllers.
keishi
2014/06/18 12:31:07
Done.
| |
| 66 bool m_geolocationOverridden; | 67 bool m_geolocationOverridden; |
| 67 Persistent<GeolocationPosition> m_geolocationPosition; | 68 PersistentWillBeMember<GeolocationPosition> m_geolocationPosition; |
| 68 Persistent<GeolocationPosition> m_platformGeolocationPosition; | 69 PersistentWillBeMember<GeolocationPosition> m_platformGeolocationPosition; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 | 72 |
| 72 } // namespace WebCore | 73 } // namespace WebCore |
| 73 | 74 |
| 74 | 75 |
| 75 #endif // !defined(GeolocationInspectorAgent_h) | 76 #endif // !defined(GeolocationInspectorAgent_h) |
| OLD | NEW |