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

Side by Side Diff: content/child/geofencing/geofencing_message_filter.h

Issue 476293002: Pass through geofencing API calls to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and add region_id sanity check Created 6 years, 2 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 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H _ 5 #ifndef CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H _ 6 #define CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_
7 7
8 #include "content/child/child_message_filter.h" 8 #include "content/child/child_message_filter.h"
9 9
10 namespace base { 10 namespace base {
11 class MessageLoopProxy; 11 class MessageLoopProxy;
12 } 12 }
13 13
14 namespace content { 14 namespace content {
15 15
16 class EmbeddedWorkerContextMessageFilter : public ChildMessageFilter { 16 class ThreadSafeSender;
17
18 class GeofencingMessageFilter : public ChildMessageFilter {
17 public: 19 public:
18 EmbeddedWorkerContextMessageFilter(); 20 explicit GeofencingMessageFilter(ThreadSafeSender* thread_safe_sender);
19 21
20 protected: 22 private:
21 virtual ~EmbeddedWorkerContextMessageFilter(); 23 virtual ~GeofencingMessageFilter();
22 24
23 // ChildMessageFilter implementation: 25 // ChildMessageFilter implementation:
24 virtual base::TaskRunner* OverrideTaskRunnerForMessage( 26 virtual base::TaskRunner* OverrideTaskRunnerForMessage(
25 const IPC::Message& msg) OVERRIDE; 27 const IPC::Message& msg) OVERRIDE;
26 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
27 29
28 private:
29 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_; 30 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
30 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 31 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextMessageFilter); 33 DISALLOW_COPY_AND_ASSIGN(GeofencingMessageFilter);
33 }; 34 };
34 35
35 } // namespace content 36 } // namespace content
36 37
37 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTE R_H_ 38 #endif // CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698