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

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

Issue 319863003: Enable Oilpan for modules/geolocation by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebGeolocationError_h 26 #ifndef WebGeolocationError_h
27 #define WebGeolocationError_h 27 #define WebGeolocationError_h
28 28
29 #include "../platform/WebCommon.h" 29 #include "../platform/WebCommon.h"
30 #include "../platform/WebPrivatePtr.h" 30 #include "../platform/WebPrivatePtr.h"
31 31
32 #if BLINK_IMPLEMENTATION
33 #include "wtf/PassRefPtr.h"
34 #endif
35
36 namespace WebCore { class GeolocationError; } 32 namespace WebCore { class GeolocationError; }
37 33
38 namespace blink { 34 namespace blink {
39 35
40 class WebString; 36 class WebString;
41 37
42 class WebGeolocationError { 38 class WebGeolocationError {
43 public: 39 public:
44 enum Error { 40 enum Error {
45 ErrorPermissionDenied, 41 ErrorPermissionDenied,
46 ErrorPositionUnavailable 42 ErrorPositionUnavailable
47 }; 43 };
48 44
49 WebGeolocationError(Error code, const WebString& message) { assign(code, mes sage); } 45 WebGeolocationError(Error code, const WebString& message) { assign(code, mes sage); }
50 WebGeolocationError(const WebGeolocationError& other) { assign(other); } 46 WebGeolocationError(const WebGeolocationError& other) { assign(other); }
51 ~WebGeolocationError() { reset(); } 47 ~WebGeolocationError() { reset(); }
52 48
53 BLINK_EXPORT void assign(Error code, const WebString& message); 49 BLINK_EXPORT void assign(Error code, const WebString& message);
54 BLINK_EXPORT void assign(const WebGeolocationError&); 50 BLINK_EXPORT void assign(const WebGeolocationError&);
55 BLINK_EXPORT void reset(); 51 BLINK_EXPORT void reset();
56 52
57 #if BLINK_IMPLEMENTATION 53 #if BLINK_IMPLEMENTATION
58 WebGeolocationError(PassRefPtrWillBeRawPtr<WebCore::GeolocationError>); 54 WebGeolocationError(WebCore::GeolocationError*);
59 WebGeolocationError& operator=(PassRefPtrWillBeRawPtr<WebCore::GeolocationEr ror>); 55 WebGeolocationError& operator=(WebCore::GeolocationError*);
60 operator PassRefPtrWillBeRawPtr<WebCore::GeolocationError>() const; 56 operator WebCore::GeolocationError*() const;
61 #endif 57 #endif
62 58
63 private: 59 private:
64 WebPrivatePtr<WebCore::GeolocationError> m_private; 60 WebPrivatePtr<WebCore::GeolocationError> m_private;
65 }; 61 };
66 62
67 } // namespace blink 63 } // namespace blink
68 64
69 #endif // WebGeolocationError_h 65 #endif // WebGeolocationError_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698