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

Unified Diff: content/child/navigator_connect/navigator_connect_dispatcher.cc

Issue 1192713004: Update client side navigator.connect API to use ServicePortCollection [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/child/navigator_connect/navigator_connect_dispatcher.cc
diff --git a/content/child/navigator_connect/navigator_connect_dispatcher.cc b/content/child/navigator_connect/navigator_connect_dispatcher.cc
deleted file mode 100644
index ee5bc3e5c61899fb9ba723c7ff9f0eb848e2e7fd..0000000000000000000000000000000000000000
--- a/content/child/navigator_connect/navigator_connect_dispatcher.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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.
-
-#include "content/child/navigator_connect/navigator_connect_dispatcher.h"
-
-#include "content/child/navigator_connect/navigator_connect_provider.h"
-#include "content/common/navigator_connect_messages.h"
-
-namespace content {
-
-NavigatorConnectDispatcher::NavigatorConnectDispatcher(ThreadSafeSender* sender)
- : WorkerThreadMessageFilter(sender) {
-}
-
-NavigatorConnectDispatcher::~NavigatorConnectDispatcher() {
-}
-
-bool NavigatorConnectDispatcher::ShouldHandleMessage(
- const IPC::Message& msg) const {
- return IPC_MESSAGE_CLASS(msg) == NavigatorConnectMsgStart;
-}
-
-void NavigatorConnectDispatcher::OnFilteredMessageReceived(
- const IPC::Message& msg) {
- NavigatorConnectProvider::ThreadSpecificInstance(
- thread_safe_sender(), main_thread_task_runner())->OnMessageReceived(msg);
-}
-
-bool NavigatorConnectDispatcher::GetWorkerThreadIdForMessage(
- const IPC::Message& msg,
- int* ipc_thread_id) {
- return base::PickleIterator(msg).ReadInt(ipc_thread_id);
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698