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

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

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (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) 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 28 matching lines...) Expand all
39 39
40 namespace WebCore { 40 namespace WebCore {
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(GeolocationController*); 49 static PassOwnPtrWillBeRawPtr<GeolocationInspectorAgent> create(GeolocationC ontroller*);
50 virtual ~GeolocationInspectorAgent(); 50 virtual ~GeolocationInspectorAgent();
51 virtual void trace(Visitor*) OVERRIDE;
51 52
52 // Protocol methods. 53 // Protocol methods.
53 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;
54 virtual void clearGeolocationOverride(ErrorString*) OVERRIDE; 55 virtual void clearGeolocationOverride(ErrorString*) OVERRIDE;
55 56
56 // Instrumentation method. 57 // Instrumentation method.
57 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); 58 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*);
58 59
59 private: 60 private:
60 explicit GeolocationInspectorAgent(GeolocationController*); 61 explicit GeolocationInspectorAgent(GeolocationController*);
61 GeolocationController* m_controller; 62 GeolocationController* m_controller;
62 bool m_geolocationOverridden; 63 bool m_geolocationOverridden;
63 RefPtrWillBePersistent<GeolocationPosition> m_geolocationPosition; 64 RefPtrWillBeMember<GeolocationPosition> m_geolocationPosition;
64 RefPtrWillBePersistent<GeolocationPosition> m_platformGeolocationPosition; 65 RefPtrWillBeMember<GeolocationPosition> m_platformGeolocationPosition;
65 }; 66 };
66 67
67 68
68 } // namespace WebCore 69 } // namespace WebCore
69 70
70 71
71 #endif // !defined(GeolocationInspectorAgent_h) 72 #endif // !defined(GeolocationInspectorAgent_h)
OLDNEW
« no previous file with comments | « Source/modules/geolocation/GeolocationController.cpp ('k') | Source/modules/geolocation/GeolocationInspectorAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698