Commit 1eb55358 authored by thestig@chromium.org's avatar thestig@chromium.org

Cleanup: Remove unneeded forward declarations from remoting.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/8536002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109593 0039d316-1c4b-4281-b951-d872f2087c98
parent f88c2e09
......@@ -12,7 +12,6 @@
namespace remoting {
class Compressor;
class UpdateStreamPacket;
// EncoderRowBased implements an Encoder using zlib or verbatim
// compression. Zlib-based encoder must be created using
......
......@@ -25,11 +25,6 @@ class MessageLoop;
namespace remoting {
namespace protocol {
class LocalLoginStatus;
class NotifyResolutionRequest;
} // namespace protocol
class ClientContext;
class InputHandler;
class RectangleUpdateDecoder;
......
......@@ -11,12 +11,6 @@
#include "media/base/video_frame.h"
#include "remoting/protocol/connection_to_host.h"
class MessageLoop;
namespace base {
class WaitableEvent;
} // namespace base
namespace remoting {
static const uint32 kCreatedColor = 0xffccccff;
......
......@@ -7,8 +7,6 @@
#include "remoting/base/decoder.h" // For UpdatedRects
class Task;
namespace remoting {
class FrameConsumer {
......
......@@ -23,10 +23,6 @@
#include "remoting/client/plugin/pepper_plugin_thread_delegate.h"
#include "remoting/protocol/connection_to_host.h"
namespace base {
class Thread;
} // namespace base
namespace pp {
class InputEvent;
class Module;
......@@ -42,17 +38,12 @@ class ChromotingClient;
class ChromotingStats;
class ClientContext;
class InputHandler;
class JingleThread;
class PepperView;
class PepperViewProxy;
class RectangleUpdateDecoder;
struct ClientConfig;
namespace protocol {
class HostConnection;
} // namespace protocol
class ChromotingInstance : public pp::InstancePrivate {
public:
// The mimetype for which this plugin is registered.
......@@ -110,6 +101,7 @@ class ChromotingInstance : public pp::InstancePrivate {
// base/logging.h.
static bool LogToUI(int severity, const char* file, int line,
size_t message_start, const std::string& str);
private:
FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup);
......
......@@ -26,7 +26,6 @@ class MessageLoopProxy;
namespace remoting {
class ChromotingInstance;
class ClientContext;
class PepperViewProxy : public base::RefCountedThreadSafe<PepperViewProxy>,
public ChromotingView,
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H
#define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H
#ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_
#define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_
#include "base/memory/scoped_ptr.h"
#include "base/task.h"
......@@ -15,7 +15,6 @@ class MessageLoop;
namespace remoting {
class FrameConsumer;
class VideoPacketFormat;
class VideoPacket;
namespace protocol {
......@@ -95,4 +94,4 @@ class RectangleUpdateDecoder :
} // namespace remoting
#endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H
#endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_
......@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_CHROMOTING_HOST_H_
#define REMOTING_CHROMOTING_HOST_H_
#ifndef REMOTING_HOST_CHROMOTING_HOST_H_
#define REMOTING_HOST_CHROMOTING_HOST_H_
#include <string>
#include <vector>
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread.h"
......@@ -21,12 +22,9 @@
#include "remoting/protocol/session_manager.h"
#include "remoting/protocol/connection_to_client.h"
class Task;
namespace remoting {
namespace protocol {
class HostStub;
class InputStub;
class SessionConfig;
class CandidateSessionConfig;
......
......@@ -13,12 +13,6 @@
#include "base/threading/thread.h"
#include "remoting/jingle_glue/jingle_thread.h"
class Task;
namespace tracked_objects {
class Location;
}
namespace remoting {
// A class that manages threads and running context for the chromoting host
......@@ -26,7 +20,7 @@ namespace remoting {
class ChromotingHostContext {
public:
// Create a context.
ChromotingHostContext(base::MessageLoopProxy* ui_message_loop);
explicit ChromotingHostContext(base::MessageLoopProxy* ui_message_loop);
virtual ~ChromotingHostContext();
// TODO(ajwong): Move the Start/Stop methods out of this class. Then
......
......@@ -6,7 +6,6 @@
namespace remoting {
class ChromotingHost;
class DisconnectWindowMac;
}
// Controller for the disconnect window which allows the host user to
......
......@@ -9,8 +9,6 @@
#include "base/memory/ref_counted.h"
class Task;
namespace remoting {
// Following constants define names for configuration parameters.
......@@ -34,8 +32,8 @@ extern const char kPrivateKeyConfigPath[];
// HostConfig interace provides read-only access to host configuration.
class HostConfig : public base::RefCountedThreadSafe<HostConfig> {
public:
HostConfig() { };
virtual ~HostConfig() { }
HostConfig() {}
virtual ~HostConfig() {}
virtual bool GetString(const std::string& path, std::string* out_value) = 0;
virtual bool GetBoolean(const std::string& path, bool* out_value) = 0;
......@@ -46,7 +44,7 @@ class HostConfig : public base::RefCountedThreadSafe<HostConfig> {
// MutableHostConfig extends HostConfig for mutability.
class MutableHostConfig : public HostConfig {
public:
MutableHostConfig() { };
MutableHostConfig() {}
// SetString() updates specified config value. Save() must be called to save
// the changes on the disk.
......
......@@ -2,18 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_STATUS_OBSERVER_H_
#define REMOTING_HOST_STATUS_OBSERVER_H_
#ifndef REMOTING_HOST_HOST_STATUS_OBSERVER_H_
#define REMOTING_HOST_HOST_STATUS_OBSERVER_H_
#include <string>
namespace remoting {
class SignalStrategy;
namespace protocol {
class ConnectionToClient;
}
// Interface for host status observer. All methods are invoked on the
// network thread.
class HostStatusObserver {
......@@ -41,4 +37,4 @@ class HostStatusObserver {
} // namespace remoting
#endif // REMOTING_HOST_STATUS_OBSERVER_H_
#endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_
......@@ -12,8 +12,6 @@
#include "base/synchronization/lock.h"
#include "remoting/host/host_config.h"
class Task;
namespace base {
class DictionaryValue;
}
......
......@@ -12,8 +12,6 @@
#include "base/memory/scoped_ptr.h"
#include "remoting/host/in_memory_host_config.h"
class Task;
namespace base {
class MessageLoopProxy;
} // namespace base
......
......@@ -26,10 +26,6 @@
#include "third_party/npapi/bindings/npfunctions.h"
#include "third_party/npapi/bindings/npruntime.h"
namespace tracked_objects {
class Location;
} // namespace tracked_objects
namespace remoting {
class ChromotingHost;
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_SUPPORT_HOST_REGISTER_QUERY_H_
#define REMOTING_HOST_SUPPORT_HOST_REGISTER_QUERY_H_
#ifndef REMOTING_HOST_REGISTER_SUPPORT_HOST_REQUEST_H_
#define REMOTING_HOST_REGISTER_SUPPORT_HOST_REQUEST_H_
#include <string>
......@@ -28,7 +28,6 @@ namespace remoting {
class IqRequest;
class IqSender;
class MutableHostConfig;
// RegisterSupportHostRequest sends support host registeration request
// to the Chromoting Bot. It listens to the status of the host using
......@@ -87,4 +86,4 @@ class RegisterSupportHostRequest : public HostStatusObserver {
} // namespace remoting
#endif // REMOTING_HOST_SUPPORT_HOST_REGISTER_QUERY_H_
#endif // REMOTING_HOST_REGISTER_SUPPORT_HOST_REQUEST_H_
......@@ -13,8 +13,6 @@
namespace remoting {
class HostConfig;
// SupportAccessVerifier is used in Me2Mom scenario to verify that the
// client knows the host secret.
class SupportAccessVerifier : public AccessVerifier {
......
......@@ -16,10 +16,6 @@ namespace base {
class MessageLoopProxy;
} // namespace base
namespace buzz {
class XmppClient;
} // namespace buzz
namespace remoting {
class TaskPump : public talk_base::MessageHandler,
......@@ -37,7 +33,7 @@ class TaskPump : public talk_base::MessageHandler,
class JingleThreadMessageLoop : public MessageLoop {
public:
JingleThreadMessageLoop(talk_base::Thread* thread);
explicit JingleThreadMessageLoop(talk_base::Thread* thread);
virtual ~JingleThreadMessageLoop();
private:
......
......@@ -19,8 +19,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
class MessageLoop;
namespace remoting {
class XmppProxy : public base::RefCountedThreadSafe<XmppProxy> {
......@@ -54,4 +52,4 @@ class XmppProxy : public base::RefCountedThreadSafe<XmppProxy> {
} // namespace remoting
#endif // REMOTING_JINGLE_GLUE_XMPP_PROXY_H_
#endif // REMOTING_JINGLE_GLUE_XMPP_PROXY_H_
......@@ -13,8 +13,6 @@
#include "net/base/io_buffer.h"
#include "net/socket/socket.h"
class Task;
namespace base {
class MessageLoopProxy;
} // namespace base
......@@ -108,7 +106,7 @@ class BufferedSocketWriterBase
class BufferedSocketWriter : public BufferedSocketWriterBase {
public:
BufferedSocketWriter(base::MessageLoopProxy* message_loop);
explicit BufferedSocketWriter(base::MessageLoopProxy* message_loop);
virtual ~BufferedSocketWriter();
protected:
......@@ -122,7 +120,7 @@ class BufferedSocketWriter : public BufferedSocketWriterBase {
class BufferedDatagramWriter : public BufferedSocketWriterBase {
public:
BufferedDatagramWriter(base::MessageLoopProxy* message_loop);
explicit BufferedDatagramWriter(base::MessageLoopProxy* message_loop);
virtual ~BufferedDatagramWriter();
protected:
......
......@@ -9,16 +9,14 @@
//
// This class can be used on any thread.
#ifndef REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_
#define REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_
#ifndef REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_
#define REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "remoting/protocol/client_stub.h"
class Task;
namespace base {
class MessageLoopProxy;
} // namespace base
......@@ -56,4 +54,4 @@ class ClientControlSender : public ClientStub {
} // namespace protocol
} // namespace remoting
#endif // REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_
#endif // REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_
......@@ -11,8 +11,6 @@
namespace remoting {
class EventMessage;
namespace protocol {
class ClientStub;
......
......@@ -26,14 +26,12 @@ class Instance;
namespace remoting {
class JingleThread;
class XmppProxy;
class VideoPacket;
namespace protocol {
class ClientMessageDispatcher;
class ClientControlSender;
class ClientStub;
class HostControlSender;
class HostStub;
......
......@@ -10,10 +10,6 @@
#include "base/task.h"
#include "remoting/protocol/message_reader.h"
namespace base {
class MessageLoopProxy;
} // namespace base
namespace remoting {
namespace protocol {
......
......@@ -11,15 +11,13 @@
#include "base/basictypes.h"
class Task;
namespace remoting {
namespace protocol {
class HostStub {
public:
HostStub() {};
virtual ~HostStub() {};
HostStub() {}
virtual ~HostStub() {}
// Currently we don't use the control channel for anything. Add new
// message handlers here when necessary.
......
......@@ -10,8 +10,6 @@
#include "base/basictypes.h"
class Task;
namespace remoting {
namespace protocol {
......@@ -20,8 +18,8 @@ class MouseEvent;
class InputStub {
public:
InputStub() {};
virtual ~InputStub() {};
InputStub() {}
virtual ~InputStub() {}
virtual void InjectKeyEvent(const KeyEvent& event) = 0;
virtual void InjectMouseEvent(const MouseEvent& event) = 0;
......
......@@ -5,14 +5,12 @@
#ifndef REMOTING_PROTOCOL_JINGLE_DATAGRAM_CONNECTOR_H_
#define REMOTING_PROTOCOL_JINGLE_DATAGRAM_CONNECTOR_H_
#include <string>
#include "net/base/completion_callback.h"
#include "remoting/protocol/jingle_channel_connector.h"
#include "remoting/protocol/session.h"
namespace cricket {
class TransportChannel;
} // namespace cricket
namespace jingle_glue {
class TransportChannelSocketAdapter;
} // namespace jingle_glue
......
......@@ -5,6 +5,8 @@
#ifndef REMOTING_PROTOCOL_JINGLE_STREAM_CONNECTOR_H_
#define REMOTING_PROTOCOL_JINGLE_STREAM_CONNECTOR_H_
#include <string>
#include "base/memory/scoped_ptr.h"
#include "net/base/completion_callback.h"
#include "remoting/protocol/channel_authenticator.h"
......@@ -15,10 +17,6 @@ namespace cricket {
class TransportChannel;
} // namespace cricket
namespace jingle_glue {
class TransportChannelSocketAdapter;
} // namespace jingle_glue
namespace net {
class CertVerifier;
class StreamSocket;
......
......@@ -5,6 +5,7 @@
#ifndef REMOTING_PROTOCOL_PEPPER_SESSION_H_
#define REMOTING_PROTOCOL_PEPPER_SESSION_H_
#include <list>
#include <map>
#include <string>
......@@ -17,17 +18,10 @@
#include "remoting/protocol/session_config.h"
namespace net {
class CertVerifier;
class ClientSocketFactory;
class Socket;
class StreamSocket;
class X509Certificate;
} // namespace net
namespace pp {
class Instance;
} // namespace pp
namespace remoting {
class IqRequest;
......@@ -36,7 +30,6 @@ namespace protocol {
class PepperChannel;
class PepperSessionManager;
class SocketWrapper;
// Implements the protocol::Session interface using the Pepper P2P
// Transport API. Created by PepperSessionManager for incoming and
......@@ -75,7 +68,7 @@ class PepperSession : public Session {
typedef std::map<std::string, PepperChannel*> ChannelsMap;
PepperSession(PepperSessionManager* session_manager);
explicit PepperSession(PepperSessionManager* session_manager);
// Start cs connection by sending session-initiate message.
void StartConnection(const std::string& peer_jid,
......
......@@ -5,6 +5,8 @@
#ifndef REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_
#define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_
#include <string>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/completion_callback.h"
......@@ -17,7 +19,6 @@ namespace net {
class CertVerifier;
class StreamSocket;
class SSLClientSocket;
class SSLServerSocket;
} // namespace net
namespace remoting {
......
......@@ -16,7 +16,6 @@
#include "ppapi/cpp/completion_callback.h"
namespace pp {
class Instance;
class Transport_Dev;
} // namespace pp
......
......@@ -5,6 +5,8 @@
#ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
#define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
#include <string>
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/connection_to_client.h"
......@@ -17,8 +19,6 @@
namespace remoting {
namespace protocol {
class ChromotocolConnection;
class MockConnectionToClient : public ConnectionToClient {
public:
MockConnectionToClient(Session* session,
......
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2011 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.
......@@ -13,8 +13,6 @@ class MessageLoopProxy;
namespace remoting {
class CompoundBuffer;
namespace protocol {
class BufferedDatagramWriter;
......@@ -22,7 +20,7 @@ struct RtcpReceiverReport;
class RtcpWriter {
public:
RtcpWriter(base::MessageLoopProxy* message_loop);
explicit RtcpWriter(base::MessageLoopProxy* message_loop);
virtual ~RtcpWriter();
// Initializes the writer. Must be called on the thread the socket
......
......@@ -12,8 +12,6 @@
#include "remoting/protocol/buffered_socket_writer.h"
#include "remoting/protocol/session_config.h"
class Task;
namespace net {
class Socket;
class StreamSocket;
......
......@@ -52,8 +52,6 @@
#include "base/threading/non_thread_safe.h"
#include "remoting/protocol/session.h"
class Task;
namespace crypto {
class RSAPrivateKey;
} // namespace base
......
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2011 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.
......@@ -11,8 +11,6 @@
#include "net/base/io_buffer.h"
#include "third_party/protobuf/src/google/protobuf/message_lite.h"
class Task;
namespace remoting {
namespace protocol {
......
......@@ -17,9 +17,6 @@ class MessageLoopProxy;
} // namespace base
namespace remoting {
class ChromotocolConnection;
namespace protocol {
class Session;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment