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

Side by Side Diff: public/web/WebGeolocationController.h

Issue 490143002: Move GeolocationClient to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Provide default empty impl of WebGeolocationClient::geolocationDestroyed() virtual Created 6 years, 4 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 30 matching lines...) Expand all
41 public: 41 public:
42 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&); 42 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&);
43 BLINK_EXPORT void errorOccurred(const WebGeolocationError&); 43 BLINK_EXPORT void errorOccurred(const WebGeolocationError&);
44 44
45 #if BLINK_IMPLEMENTATION 45 #if BLINK_IMPLEMENTATION
46 WebGeolocationController(GeolocationController* c) 46 WebGeolocationController(GeolocationController* c)
47 : m_private(c) 47 : m_private(c)
48 { 48 {
49 } 49 }
50 50
51 blink::GeolocationController* controller() const { return m_private; } 51 GeolocationController* controller() const { return m_private; }
52 #endif 52 #endif
53 53
54 private: 54 private:
55 // No implementation for the default constructor. Declared private to ensure that no instances 55 // No implementation for the default constructor. Declared private to ensure that no instances
56 // can be created by the consumers of Chromium WebKit. 56 // can be created by the consumers of Chromium WebKit.
57 WebGeolocationController(); 57 WebGeolocationController();
58 58
59 // This bare pointer is owned and kept alive by the frame of the
60 // WebLocalFrame which creates this controller object.
59 GeolocationController* m_private; 61 GeolocationController* m_private;
60 }; 62 };
61 63
62 } // namespace blink 64 } // namespace blink
63 65
64 #endif // WebGeolocationController_h 66 #endif // WebGeolocationController_h
OLDNEW
« public/web/WebGeolocationClient.h ('K') | « public/web/WebGeolocationClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698