diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-31 02:29:20 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-31 02:29:20 +0000 |
commit | 5e9e96aae1a78860b984124519f720163fc52a33 (patch) | |
tree | d29e8de21b25f313cf93d1c939fc1dd3083b92f4 /remoting | |
parent | 16efcd1cd7d75552d6ef14632030520d9bb3986c (diff) | |
download | chromium_src-5e9e96aae1a78860b984124519f720163fc52a33.zip chromium_src-5e9e96aae1a78860b984124519f720163fc52a33.tar.gz chromium_src-5e9e96aae1a78860b984124519f720163fc52a33.tar.bz2 |
Move MessageLoop to base namespace.
This adds a "using" to the header to avoid having to update everything at once. However, all forward declares and the locations that use the forward declares need to be updated (since they don't see the using in message_loop.h).
BUG=
Review URL: https://codereview.chromium.org/13243003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/base/auto_thread_task_runner.h | 2 | ||||
-rw-r--r-- | remoting/base/plugin_thread_task_runner.h | 2 | ||||
-rw-r--r-- | remoting/host/register_support_host_request.h | 2 | ||||
-rw-r--r-- | remoting/protocol/connection_tester.h | 6 | ||||
-rw-r--r-- | remoting/protocol/fake_session.h | 8 |
5 files changed, 9 insertions, 11 deletions
diff --git a/remoting/base/auto_thread_task_runner.h b/remoting/base/auto_thread_task_runner.h index ea43521..5626856 100644 --- a/remoting/base/auto_thread_task_runner.h +++ b/remoting/base/auto_thread_task_runner.h @@ -11,8 +11,6 @@ #include "base/message_loop.h" #include "base/single_thread_task_runner.h" -class MessageLoop; - namespace remoting { // A wrapper around |SingleThreadTaskRunner| that provides automatic lifetime diff --git a/remoting/base/plugin_thread_task_runner.h b/remoting/base/plugin_thread_task_runner.h index bfae1ce..15c1d2b 100644 --- a/remoting/base/plugin_thread_task_runner.h +++ b/remoting/base/plugin_thread_task_runner.h @@ -16,8 +16,6 @@ #include "base/threading/platform_thread.h" #include "base/time.h" -class MessageLoop; - namespace remoting { // SingleThreadTaskRunner for plugin main threads. diff --git a/remoting/host/register_support_host_request.h b/remoting/host/register_support_host_request.h index ab4d649..7fce5ea 100644 --- a/remoting/host/register_support_host_request.h +++ b/remoting/host/register_support_host_request.h @@ -14,8 +14,6 @@ #include "remoting/jingle_glue/signal_strategy.h" #include "testing/gtest/include/gtest/gtest_prod.h" -class MessageLoop; - namespace buzz { class XmlElement; } // namespace buzz diff --git a/remoting/protocol/connection_tester.h b/remoting/protocol/connection_tester.h index f89cd7a..6c95c71 100644 --- a/remoting/protocol/connection_tester.h +++ b/remoting/protocol/connection_tester.h @@ -9,7 +9,9 @@ #include "base/memory/ref_counted.h" +namespace base { class MessageLoop; +} namespace net { class DrainableIOBuffer; @@ -48,7 +50,7 @@ class StreamConnectionTester { void HandleReadResult(int result); private: - MessageLoop* message_loop_; + base::MessageLoop* message_loop_; net::StreamSocket* host_socket_; net::StreamSocket* client_socket_; int message_size_; @@ -83,7 +85,7 @@ class DatagramConnectionTester { void OnRead(int result); void HandleReadResult(int result); - MessageLoop* message_loop_; + base::MessageLoop* message_loop_; net::Socket* host_socket_; net::Socket* client_socket_; int message_size_; diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h index 2ca9b46..471b336 100644 --- a/remoting/protocol/fake_session.h +++ b/remoting/protocol/fake_session.h @@ -17,7 +17,9 @@ #include "remoting/protocol/channel_factory.h" #include "remoting/protocol/session.h" +namespace base { class MessageLoop; +} namespace remoting { namespace protocol { @@ -98,7 +100,7 @@ class FakeSocket : public net::StreamSocket { net::BoundNetLog net_log_; - MessageLoop* message_loop_; + base::MessageLoop* message_loop_; base::WeakPtrFactory<FakeSocket> weak_factory_; DISALLOW_COPY_AND_ASSIGN(FakeSocket); @@ -138,7 +140,7 @@ class FakeUdpSocket : public net::Socket { std::vector<std::string> input_packets_; int input_pos_; - MessageLoop* message_loop_; + base::MessageLoop* message_loop_; DISALLOW_COPY_AND_ASSIGN(FakeUdpSocket); }; @@ -195,7 +197,7 @@ class FakeSession : public Session, EventHandler* event_handler_; scoped_ptr<const CandidateSessionConfig> candidate_config_; SessionConfig config_; - MessageLoop* message_loop_; + base::MessageLoop* message_loop_; bool async_creation_; |