OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/net/websocket_experiment/websocket_experiment_runner.h" | 5 #include "chrome/browser/net/websocket_experiment/websocket_experiment_runner.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/field_trial.h" | 9 #include "base/field_trial.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "base/string_util.h" |
12 #include "chrome/browser/chrome_thread.h" | 13 #include "chrome/browser/chrome_thread.h" |
13 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
14 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
15 #include "net/websockets/websocket.h" | 16 #include "net/websockets/websocket.h" |
16 | 17 |
17 namespace chrome_browser_net_websocket_experiment { | 18 namespace chrome_browser_net_websocket_experiment { |
18 | 19 |
19 static const char *kExperimentHost = "websocket-experiment.chromium.org"; | 20 static const char *kExperimentHost = "websocket-experiment.chromium.org"; |
20 static const int kAlternativePort = 61985; | 21 static const int kAlternativePort = 61985; |
21 | 22 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 Release(); | 221 Release(); |
221 return; | 222 return; |
222 } | 223 } |
223 task_->SaveResult(); | 224 task_->SaveResult(); |
224 task_.reset(); | 225 task_.reset(); |
225 | 226 |
226 DoLoop(); | 227 DoLoop(); |
227 } | 228 } |
228 | 229 |
229 } // namespace chrome_browser_net_websocket_experiment | 230 } // namespace chrome_browser_net_websocket_experiment |
OLD | NEW |