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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/child/geofencing/geofencing_message_filter.h
diff --git a/content/renderer/service_worker/embedded_worker_context_message_filter.h b/content/child/geofencing/geofencing_message_filter.h
similarity index 52%
copy from content/renderer/service_worker/embedded_worker_context_message_filter.h
copy to content/child/geofencing/geofencing_message_filter.h
index 3060d8e94432b74d70f66168b3d86a477e5f5c47..a2ec8b2bb36cb233b72443134a425b3d1dc01af3 100644
--- a/content/renderer/service_worker/embedded_worker_context_message_filter.h
+++ b/content/child/geofencing/geofencing_message_filter.h
@@ -1,9 +1,9 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H_
-#define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H_
+#ifndef CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_
+#define CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_
#include "content/child/child_message_filter.h"
@@ -13,25 +13,26 @@ class MessageLoopProxy;
namespace content {
-class EmbeddedWorkerContextMessageFilter : public ChildMessageFilter {
+class ThreadSafeSender;
+
+class GeofencingMessageFilter : public ChildMessageFilter {
public:
- EmbeddedWorkerContextMessageFilter();
+ explicit GeofencingMessageFilter(ThreadSafeSender* thread_safe_sender);
- protected:
- virtual ~EmbeddedWorkerContextMessageFilter();
+ private:
+ virtual ~GeofencingMessageFilter();
// ChildMessageFilter implementation:
virtual base::TaskRunner* OverrideTaskRunnerForMessage(
const IPC::Message& msg) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
- private:
scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
- DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextMessageFilter);
+ DISALLOW_COPY_AND_ASSIGN(GeofencingMessageFilter);
};
} // namespace content
-#endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H_
+#endif // CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698