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

Side by Side Diff: net/base/test_completion_callback.cc

Issue 19614003: Use a direct include of the message_loop header in net/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/network_time_notifier.cc ('k') | net/base/test_completion_callback_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/test_completion_callback.h" 5 #include "net/base/test_completion_callback.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 namespace internal { 15 namespace internal {
16 16
17 void TestCompletionCallbackBaseInternal::DidSetResult() { 17 void TestCompletionCallbackBaseInternal::DidSetResult() {
18 have_result_ = true; 18 have_result_ = true;
19 if (waiting_for_result_) 19 if (waiting_for_result_)
20 base::MessageLoop::current()->Quit(); 20 base::MessageLoop::current()->Quit();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ReleaseBufferCompletionCallback::~ReleaseBufferCompletionCallback() { 60 ReleaseBufferCompletionCallback::~ReleaseBufferCompletionCallback() {
61 } 61 }
62 62
63 void ReleaseBufferCompletionCallback::SetResult(int result) { 63 void ReleaseBufferCompletionCallback::SetResult(int result) {
64 if (!buffer_->HasOneRef()) 64 if (!buffer_->HasOneRef())
65 result = net::ERR_FAILED; 65 result = net::ERR_FAILED;
66 TestCompletionCallback::SetResult(result); 66 TestCompletionCallback::SetResult(result);
67 } 67 }
68 68
69 } // namespace net 69 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_time_notifier.cc ('k') | net/base/test_completion_callback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698