OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // WebSocket live experiment task. | 5 // WebSocket live experiment task. |
6 // It will try the following scenario. | 6 // It will try the following scenario. |
7 // | 7 // |
8 // - Fetch |http_url| within |url_fetch_deadline_ms| msec. | 8 // - Fetch |http_url| within |url_fetch_deadline_ms| msec. |
9 // If failed, the task is aborted (no http reachability) | 9 // If failed, the task is aborted (no http reachability) |
10 // | 10 // |
(...skipping 23 matching lines...) Expand all Loading... |
34 #ifndef CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_TASK_H_ | 34 #ifndef CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_TASK_H_ |
35 #define CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_TASK_H_ | 35 #define CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_TASK_H_ |
36 #pragma once | 36 #pragma once |
37 | 37 |
38 #include <deque> | 38 #include <deque> |
39 #include <string> | 39 #include <string> |
40 | 40 |
41 #include "base/basictypes.h" | 41 #include "base/basictypes.h" |
42 #include "base/task.h" | 42 #include "base/task.h" |
43 #include "base/time.h" | 43 #include "base/time.h" |
44 #include "chrome/common/net/url_fetcher.h" | 44 #include "content/common/url_fetcher.h" |
45 #include "googleurl/src/gurl.h" | 45 #include "googleurl/src/gurl.h" |
46 #include "net/base/completion_callback.h" | 46 #include "net/base/completion_callback.h" |
47 #include "net/base/net_errors.h" | 47 #include "net/base/net_errors.h" |
48 #include "net/websockets/websocket.h" | 48 #include "net/websockets/websocket.h" |
49 | 49 |
50 namespace net { | 50 namespace net { |
51 class WebSocket; | 51 class WebSocket; |
52 } // namespace net | 52 } // namespace net |
53 | 53 |
54 namespace chrome_browser_net_websocket_experiment { | 54 namespace chrome_browser_net_websocket_experiment { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 base::TimeTicks websocket_connect_start_time_; | 205 base::TimeTicks websocket_connect_start_time_; |
206 base::TimeTicks websocket_echo_start_time_; | 206 base::TimeTicks websocket_echo_start_time_; |
207 base::TimeTicks websocket_idle_start_time_; | 207 base::TimeTicks websocket_idle_start_time_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(WebSocketExperimentTask); | 209 DISALLOW_COPY_AND_ASSIGN(WebSocketExperimentTask); |
210 }; | 210 }; |
211 | 211 |
212 } // namespace chrome_browser_net | 212 } // namespace chrome_browser_net |
213 | 213 |
214 #endif // CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_TASK_H_ | 214 #endif // CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_TASK_H_ |
OLD | NEW |