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 #include "chrome/browser/chromeos/web_socket_proxy.h" | 5 #include "chrome/browser/chromeos/web_socket_proxy.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <limits> | 12 #include <limits> |
13 #include <list> | 13 #include <list> |
14 #include <map> | 14 #include <map> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include <arpa/inet.h> | |
18 #include <errno.h> | 17 #include <errno.h> |
19 #include <fcntl.h> | 18 #include <fcntl.h> |
20 #include <netinet/in.h> | 19 #include <netinet/in.h> |
21 #include <signal.h> | 20 #include <signal.h> |
22 #include <sys/socket.h> | 21 #include <sys/socket.h> |
23 #include <sys/types.h> | 22 #include <sys/types.h> |
24 #include <sys/wait.h> | 23 #include <sys/wait.h> |
25 | 24 |
26 #include "base/base64.h" | 25 #include "base/base64.h" |
27 #include "base/basictypes.h" | 26 #include "base/basictypes.h" |
28 #include "base/bind.h" | 27 #include "base/bind.h" |
29 #include "base/bind_helpers.h" | 28 #include "base/bind_helpers.h" |
30 #include "base/lazy_instance.h" | 29 #include "base/lazy_instance.h" |
31 #include "base/logging.h" | 30 #include "base/logging.h" |
32 #include "base/memory/ref_counted.h" | 31 #include "base/memory/ref_counted.h" |
33 #include "base/memory/scoped_ptr.h" | 32 #include "base/memory/scoped_ptr.h" |
34 #include "base/memory/weak_ptr.h" | 33 #include "base/memory/weak_ptr.h" |
35 #include "base/message_loop.h" | 34 #include "base/message_loop.h" |
36 #include "base/sha1.h" | 35 #include "base/sha1.h" |
37 #include "base/stl_util.h" | 36 #include "base/stl_util.h" |
38 #include "base/string_number_conversions.h" | 37 #include "base/string_number_conversions.h" |
39 #include "base/string_util.h" | 38 #include "base/string_util.h" |
| 39 #include "base/sys_byteorder.h" |
40 #include "chrome/browser/chromeos/web_socket_proxy_helper.h" | 40 #include "chrome/browser/chromeos/web_socket_proxy_helper.h" |
41 #include "chrome/browser/internal_auth.h" | 41 #include "chrome/browser/internal_auth.h" |
42 #include "chrome/common/chrome_notification_types.h" | 42 #include "chrome/common/chrome_notification_types.h" |
43 #include "chrome/common/url_constants.h" | 43 #include "chrome/common/url_constants.h" |
44 #include "content/public/browser/browser_thread.h" | 44 #include "content/public/browser/browser_thread.h" |
45 #include "content/public/browser/notification_details.h" | 45 #include "content/public/browser/notification_details.h" |
46 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
47 #include "content/public/browser/notification_types.h" | 47 #include "content/public/browser/notification_types.h" |
48 #include "content/public/common/url_constants.h" | 48 #include "content/public/common/url_constants.h" |
49 #include "googleurl/src/gurl.h" | 49 #include "googleurl/src/gurl.h" |
(...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 | 1915 |
1916 void WebSocketProxy::Shutdown() { | 1916 void WebSocketProxy::Shutdown() { |
1917 static_cast<Serv*>(impl_)->Shutdown(); | 1917 static_cast<Serv*>(impl_)->Shutdown(); |
1918 } | 1918 } |
1919 | 1919 |
1920 void WebSocketProxy::OnNetworkChange() { | 1920 void WebSocketProxy::OnNetworkChange() { |
1921 static_cast<Serv*>(impl_)->OnNetworkChange(); | 1921 static_cast<Serv*>(impl_)->OnNetworkChange(); |
1922 } | 1922 } |
1923 | 1923 |
1924 } // namespace chromeos | 1924 } // namespace chromeos |
OLD | NEW |