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

Side by Side Diff: content/browser/geofencing/geofencing_dispatcher_host.h

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete Created 4 years, 7 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
(Empty)
1 // Copyright 2014 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 CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "content/common/geofencing_types.h"
12 #include "content/public/browser/browser_message_filter.h"
13
14 namespace blink {
15 struct WebCircularGeofencingRegion;
16 }
17
18 namespace content {
19
20 class GeofencingManager;
21 class ServiceWorkerContextWrapper;
22
23 class GeofencingDispatcherHost : public BrowserMessageFilter {
24 public:
25 explicit GeofencingDispatcherHost(GeofencingManager* geofencing_manager);
26
27 private:
28 ~GeofencingDispatcherHost() override;
29
30 // BrowserMessageFilter implementation.
31 bool OnMessageReceived(const IPC::Message& message) override;
32
33 void OnRegisterRegion(int thread_id,
34 int request_id,
35 const std::string& region_id,
36 const blink::WebCircularGeofencingRegion& region,
37 int64_t service_worker_registration_id);
38 void OnUnregisterRegion(int thread_id,
39 int request_id,
40 const std::string& region_id,
41 int64_t service_worker_registration_id);
42 void OnGetRegisteredRegions(int thread_id,
43 int request_id,
44 int64_t service_worker_registration_id);
45
46 void RegisterRegionCompleted(int thread_id,
47 int request_id,
48 GeofencingStatus result);
49 void UnregisterRegionCompleted(int thread_id,
50 int request_id,
51 GeofencingStatus result);
52
53 scoped_refptr<GeofencingManager> manager_;
54 base::WeakPtrFactory<GeofencingDispatcherHost> weak_factory_;
55
56 DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost);
57 };
58
59 } // namespace content
60
61 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/geofencing/OWNERS ('k') | content/browser/geofencing/geofencing_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698