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

Side by Side Diff: content/browser/websockets/websocket_manager.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/websockets/websocket_manager.h" 5 #include "content/browser/websockets/websocket_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/numerics/safe_conversions.h" 13 #include "base/numerics/safe_conversions.h"
14 #include "base/rand_util.h" 14 #include "base/rand_util.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/render_process_host.h" 16 #include "content/public/browser/render_process_host.h"
17 #include "content/public/browser/render_process_host_observer.h" 17 #include "content/public/browser/render_process_host_observer.h"
18 #include "services/shell/public/cpp/interface_registry.h" 18 #include "services/service_manager/public/cpp/interface_registry.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 namespace { 22 namespace {
23 23
24 const char kWebSocketManagerKeyName[] = "web_socket_manager"; 24 const char kWebSocketManagerKeyName[] = "web_socket_manager";
25 25
26 // Max number of pending connections per WebSocketManager used for per-renderer 26 // Max number of pending connections per WebSocketManager used for per-renderer
27 // WebSocket throttling. 27 // WebSocket throttling.
28 const int kMaxPendingWebSocketConnections = 255; 28 const int kMaxPendingWebSocketConnections = 255;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 --num_pending_connections_; 189 --num_pending_connections_;
190 DCHECK_GE(num_pending_connections_, 0); 190 DCHECK_GE(num_pending_connections_, 0);
191 ++num_current_failed_connections_; 191 ++num_current_failed_connections_;
192 } 192 }
193 impl->GoAway(); 193 impl->GoAway();
194 impls_.erase(impl); 194 impls_.erase(impl);
195 delete impl; 195 delete impl;
196 } 196 }
197 197
198 } // namespace content 198 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/webui/web_ui_mojo_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698