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

Side by Side Diff: public/web/WebGeolocationClient.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
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | public/web/WebGeolocationController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 #define WebGeolocationClient_h 27 #define WebGeolocationClient_h
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class WebGeolocationController; 31 class WebGeolocationController;
32 class WebGeolocationPermissionRequest; 32 class WebGeolocationPermissionRequest;
33 class WebGeolocationPosition; 33 class WebGeolocationPosition;
34 34
35 class WebGeolocationClient { 35 class WebGeolocationClient {
36 public: 36 public:
37 virtual ~WebGeolocationClient() {} 37 virtual ~WebGeolocationClient() { }
38 38
39 virtual void startUpdating() = 0; 39 virtual void startUpdating() = 0;
40 virtual void stopUpdating() = 0; 40 virtual void stopUpdating() = 0;
41 virtual void setEnableHighAccuracy(bool) = 0; 41 virtual void setEnableHighAccuracy(bool) = 0;
42 virtual void geolocationDestroyed() = 0; 42 virtual void geolocationDestroyed() { }
sof 2014/08/22 08:42:26 To prepare for any Chromium-side removal of geoloc
43 virtual bool lastPosition(WebGeolocationPosition&) = 0; 43 virtual bool lastPosition(WebGeolocationPosition&) = 0;
44 44
45 virtual void requestPermission(const WebGeolocationPermissionRequest&) = 0; 45 virtual void requestPermission(const WebGeolocationPermissionRequest&) = 0;
46 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&) = 0; 46 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&) = 0;
47 47
48 // The controller is valid until geolocationDestroyed() is invoked. 48 // The controller is valid until geolocationDestroyed() is invoked.
49 // Ownership of the WebGeolocationController is transferred to the client. 49 // Ownership of the WebGeolocationController is transferred to the client.
50 virtual void setController(WebGeolocationController*) = 0; 50 virtual void setController(WebGeolocationController*) = 0;
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // WebGeolocationClient_h 55 #endif // WebGeolocationClient_h
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | public/web/WebGeolocationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698