Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: Source/modules/geolocation/GeolocationInspectorAgent.h

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 25 matching lines...) Expand all
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 blink { 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 PassOwnPtrWillBeRawPtr<GeolocationInspectorAgent> create(); 49 static PassOwnPtrWillBeRawPtr<GeolocationInspectorAgent> create();
50 virtual ~GeolocationInspectorAgent(); 50 virtual ~GeolocationInspectorAgent();
51 virtual void trace(Visitor*) OVERRIDE; 51 virtual void trace(Visitor*) override;
52 52
53 // Protocol methods. 53 // Protocol methods.
54 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;
55 virtual void clearGeolocationOverride(ErrorString*) OVERRIDE; 55 virtual void clearGeolocationOverride(ErrorString*) override;
56 56
57 // Instrumentation method. 57 // Instrumentation method.
58 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); 58 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*);
59 59
60 void addController(GeolocationController*); 60 void addController(GeolocationController*);
61 void removeController(GeolocationController*); 61 void removeController(GeolocationController*);
62 62
63 private: 63 private:
64 GeolocationInspectorAgent(); 64 GeolocationInspectorAgent();
65 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<GeolocationController> > Ge olocationControllers; 65 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<GeolocationController> > Ge olocationControllers;
66 GeolocationControllers m_controllers; 66 GeolocationControllers m_controllers;
67 bool m_geolocationOverridden; 67 bool m_geolocationOverridden;
68 PersistentWillBeMember<GeolocationPosition> m_geolocationPosition; 68 PersistentWillBeMember<GeolocationPosition> m_geolocationPosition;
69 PersistentWillBeMember<GeolocationPosition> m_platformGeolocationPosition; 69 PersistentWillBeMember<GeolocationPosition> m_platformGeolocationPosition;
70 }; 70 };
71 71
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 75
76 #endif // !defined(GeolocationInspectorAgent_h) 76 #endif // !defined(GeolocationInspectorAgent_h)
OLDNEW
« no previous file with comments | « Source/modules/geolocation/GeolocationController.h ('k') | Source/modules/geolocation/Geoposition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698