OLD | NEW |
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 "chrome/browser/chromeos/web_socket_proxy_controller.h" | 5 #include "chrome/browser/chromeos/web_socket_proxy_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include <netinet/in.h> | 9 #include <netinet/in.h> |
10 #include <sys/wait.h> | 10 #include <sys/wait.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
18 #include "base/string_tokenizer.h" | |
19 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
20 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/chromeos/web_socket_proxy.h" | 20 #include "chrome/browser/chromeos/web_socket_proxy.h" |
22 #include "chrome/common/chrome_notification_types.h" | 21 #include "chrome/common/chrome_notification_types.h" |
23 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
24 #include "chrome/common/extensions/extension.h" | 23 #include "chrome/common/extensions/extension.h" |
25 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
26 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
27 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
28 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 { | 152 { |
154 base::AutoLock alk(g_proxy_lifetime.Get().lock_); | 153 base::AutoLock alk(g_proxy_lifetime.Get().lock_); |
155 g_proxy_lifetime.Get().shutdown_requested_ = true; | 154 g_proxy_lifetime.Get().shutdown_requested_ = true; |
156 if (g_proxy_lifetime.Get().server_) | 155 if (g_proxy_lifetime.Get().server_) |
157 g_proxy_lifetime.Get().server_->Shutdown(); | 156 g_proxy_lifetime.Get().server_->Shutdown(); |
158 } | 157 } |
159 g_proxy_lifetime.Get().web_socket_proxy_thread_.Stop(); | 158 g_proxy_lifetime.Get().web_socket_proxy_thread_.Stop(); |
160 } | 159 } |
161 | 160 |
162 } // namespace chromeos | 161 } // namespace chromeos |
OLD | NEW |