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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef GeolocationInspectorAgent_h | 31 #ifndef GeolocationInspectorAgent_h |
32 #define GeolocationInspectorAgent_h | 32 #define GeolocationInspectorAgent_h |
33 | 33 |
34 | 34 |
35 #include "core/inspector/InspectorBaseAgent.h" | 35 #include "core/inspector/InspectorBaseAgent.h" |
36 #include "modules/geolocation/GeolocationPosition.h" | 36 #include "modules/geolocation/GeolocationPosition.h" |
37 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace blink { |
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 PassOwnPtr<GeolocationInspectorAgent> create(); |
50 virtual ~GeolocationInspectorAgent(); | 50 virtual ~GeolocationInspectorAgent(); |
(...skipping 11 matching lines...) Expand all Loading... |
62 private: | 62 private: |
63 GeolocationInspectorAgent(); | 63 GeolocationInspectorAgent(); |
64 typedef WillBeHeapHashSet<RawPtrWillBeMember<GeolocationController> > Geoloc
ationControllers; | 64 typedef WillBeHeapHashSet<RawPtrWillBeMember<GeolocationController> > Geoloc
ationControllers; |
65 WillBePersistentHeapHashSet<RawPtrWillBeMember<GeolocationController> > m_co
ntrollers; | 65 WillBePersistentHeapHashSet<RawPtrWillBeMember<GeolocationController> > m_co
ntrollers; |
66 bool m_geolocationOverridden; | 66 bool m_geolocationOverridden; |
67 Persistent<GeolocationPosition> m_geolocationPosition; | 67 Persistent<GeolocationPosition> m_geolocationPosition; |
68 Persistent<GeolocationPosition> m_platformGeolocationPosition; | 68 Persistent<GeolocationPosition> m_platformGeolocationPosition; |
69 }; | 69 }; |
70 | 70 |
71 | 71 |
72 } // namespace WebCore | 72 } // namespace blink |
73 | 73 |
74 | 74 |
75 #endif // !defined(GeolocationInspectorAgent_h) | 75 #endif // !defined(GeolocationInspectorAgent_h) |
OLD | NEW |