| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_OLD_H_ | |
| 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_OLD_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/ref_counted.h" | |
| 10 | |
| 11 class GeolocationPermissionContext; | |
| 12 namespace IPC { class Message; } | |
| 13 | |
| 14 // GeolocationDispatcherHostOld is a delegate for Geolocation messages used by | |
| 15 // ResourceMessageFilter. | |
| 16 // It's the complement of GeolocationDispatcher (owned by RenderView). | |
| 17 | |
| 18 // TODO(jknotten): Remove this class once the new client-based implementation is | |
| 19 // checked in (see http://crbug.com/59908). | |
| 20 class GeolocationDispatcherHostOld | |
| 21 : public base::RefCountedThreadSafe<GeolocationDispatcherHostOld> { | |
| 22 public: | |
| 23 static GeolocationDispatcherHostOld* New( | |
| 24 int resource_message_filter_process_id, | |
| 25 GeolocationPermissionContext* geolocation_permission_context); | |
| 26 | |
| 27 // Called to possibly handle the incoming IPC message. Returns true if | |
| 28 // handled. Called in the browser process. | |
| 29 virtual bool OnMessageReceived(const IPC::Message& msg, bool* msg_was_ok) = 0; | |
| 30 | |
| 31 protected: | |
| 32 friend class base::RefCountedThreadSafe<GeolocationDispatcherHostOld>; | |
| 33 GeolocationDispatcherHostOld() {} | |
| 34 virtual ~GeolocationDispatcherHostOld() {} | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(GeolocationDispatcherHostOld); | |
| 37 }; | |
| 38 | |
| 39 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_OLD_H_ | |
| OLD | NEW |