Skip to content

Commit

Permalink
Get rid of ipc_sender.h include in ipc_message.h.
Browse files Browse the repository at this point in the history
Review URL: https://codereview.chromium.org/11574040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173238 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
viettrungluu@chromium.org committed Dec 14, 2012
1 parent 7884eca commit 510344f
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/importer/profile_import_process_messages.h"
#include "content/public/common/password_form.h"
#include "ipc/ipc_sender.h"

#if defined(OS_WIN)
#include "chrome/browser/password_manager/ie7_password.h"
Expand Down
6 changes: 5 additions & 1 deletion chrome/browser/importer/external_process_importer_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/importer/importer_bridge.h"
#include "chrome/browser/importer/profile_writer.h"
#include "ipc/ipc_message.h"

class GURL;

Expand All @@ -21,6 +20,11 @@ class DictionaryValue;
class TaskRunner;
}

namespace IPC {
class Message;
class Sender;
}

// When the importer is run in an external process, the bridge is effectively
// split in half by the IPC infrastructure. The external bridge receives data
// and notifications from the importer, and sends it across IPC. The
Expand Down
5 changes: 4 additions & 1 deletion content/browser/renderer_host/p2p/socket_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
#include "content/common/content_export.h"
#include "content/common/p2p_sockets.h"

#include "ipc/ipc_message.h"
#include "net/base/ip_endpoint.h"

namespace IPC {
class Sender;
}

namespace content {

// Base class for P2P sockets.
Expand Down
1 change: 1 addition & 0 deletions content/browser/renderer_host/p2p/socket_host_tcp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "base/sys_byteorder.h"
#include "content/common/p2p_messages.h"
#include "ipc/ipc_sender.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
Expand Down
1 change: 1 addition & 0 deletions content/browser/renderer_host/p2p/socket_host_udp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "base/bind.h"
#include "content/common/p2p_messages.h"
#include "ipc/ipc_sender.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
Expand Down
1 change: 0 additions & 1 deletion content/browser/renderer_host/p2p/socket_host_udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "content/browser/renderer_host/p2p/socket_host.h"
#include "content/common/content_export.h"
#include "content/common/p2p_sockets.h"
#include "ipc/ipc_sender.h"
#include "net/base/ip_endpoint.h"
#include "net/udp/udp_server_socket.h"

Expand Down
5 changes: 4 additions & 1 deletion content/public/browser/resource_dispatcher_host_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "base/basictypes.h"
#include "content/common/content_export.h"
#include "ipc/ipc_message.h"
#include "webkit/glue/resource_type.h"

class GURL;
Expand All @@ -26,6 +25,10 @@ struct Referrer;
struct ResourceResponse;
}

namespace IPC {
class Sender;
}

namespace net {
class AuthChallengeInfo;
class SSLCertRequestInfo;
Expand Down
4 changes: 4 additions & 0 deletions content/public/test/render_view_fake_resources_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@

struct ResourceHostMsg_Request;

namespace IPC {
class Channel;
}

namespace WebKit {
class WebFrame;
class WebHistoryItem;
Expand Down
1 change: 1 addition & 0 deletions ipc/ipc_logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "ipc/ipc_switches.h"
#include "ipc/ipc_sync_message.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/ipc_sender.h"

#if defined(OS_POSIX)
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions ipc/ipc_logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ typedef base::hash_map<uint32, LogFunction > LogFunctionMap;
namespace IPC {

class Message;
class Sender;

// One instance per process. Needs to be created on the main thread (the UI
// thread in the browser) but OnPreDispatchMessage/OnPostDispatchMessage
Expand Down
6 changes: 0 additions & 6 deletions ipc/ipc_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
#include "base/pickle.h"
#include "ipc/ipc_export.h"

// TODO(brettw) remove this and update files that depend on this being included
// from here.
#include "ipc/ipc_sender.h"

#if !defined(NDEBUG)
#define IPC_MESSAGE_LOG_ENABLED
#endif
Expand All @@ -34,8 +30,6 @@ namespace IPC {

//------------------------------------------------------------------------------

class Channel;
class Message;
struct LogData;

class IPC_EXPORT Message : public Pickle {
Expand Down

0 comments on commit 510344f

Please sign in to comment.