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

Unified Diff: content/browser/renderer_host/java/java_bridge_channel_host.h

Issue 336313018: [Android] Move content/browser/{renderer_host => android}/java/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated paths for unit tests, rebased Created 6 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/browser/renderer_host/java/java_bridge_channel_host.h
diff --git a/content/browser/renderer_host/java/java_bridge_channel_host.h b/content/browser/renderer_host/java/java_bridge_channel_host.h
deleted file mode 100644
index 3f3f1468e9b7045fdceef42dc90586b58ce049a9..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/java/java_bridge_channel_host.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 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_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_
-#define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_
-
-#include "content/child/npapi/np_channel_base.h"
-
-namespace content {
-
-class JavaBridgeChannelHost : public NPChannelBase {
- public:
- static JavaBridgeChannelHost* GetJavaBridgeChannelHost(
- int renderer_id,
- base::MessageLoopProxy* ipc_message_loop);
-
- // A threadsafe function to generate a unique route ID. Used by the
- // JavaBridgeDispatcherHost on the UI thread and this class on the Java
- // Bridge's background thread.
- static int ThreadsafeGenerateRouteID();
-
- // NPChannelBase implementation:
- virtual int GenerateRouteID() OVERRIDE;
-
- // NPChannelBase override:
- virtual bool Init(base::MessageLoopProxy* ipc_message_loop,
- bool create_pipe_now,
- base::WaitableEvent* shutdown_event) OVERRIDE;
-
- protected:
- // NPChannelBase override:
- virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
-
- private:
- JavaBridgeChannelHost() {}
- friend class base::RefCountedThreadSafe<JavaBridgeChannelHost>;
- virtual ~JavaBridgeChannelHost();
-
- static NPChannelBase* ClassFactory() {
- return new JavaBridgeChannelHost();
- }
-
- // Message handlers
- void OnGenerateRouteID(int* route_id);
-
- DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannelHost);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698