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(GeolocationController*); | 49 static PassOwnPtrWillBeRawPtr<GeolocationInspectorAgent> create(GeolocationC
ontroller*); |
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 private: | 60 private: |
60 explicit GeolocationInspectorAgent(GeolocationController*); | 61 explicit GeolocationInspectorAgent(GeolocationController*); |
61 GeolocationController* m_controller; | 62 GeolocationController* m_controller; |
62 bool m_geolocationOverridden; | 63 bool m_geolocationOverridden; |
63 RefPtrWillBePersistent<GeolocationPosition> m_geolocationPosition; | 64 RefPtrWillBeMember<GeolocationPosition> m_geolocationPosition; |
64 RefPtrWillBePersistent<GeolocationPosition> m_platformGeolocationPosition; | 65 RefPtrWillBeMember<GeolocationPosition> m_platformGeolocationPosition; |
65 }; | 66 }; |
66 | 67 |
67 | 68 |
68 } // namespace WebCore | 69 } // namespace WebCore |
69 | 70 |
70 | 71 |
71 #endif // !defined(GeolocationInspectorAgent_h) | 72 #endif // !defined(GeolocationInspectorAgent_h) |
OLD | NEW |