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

Side by Side Diff: content/browser/websocket/websocket_manager.h

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_MANAGER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_MANAGER_H_
7
8 #include "base/macros.h"
9 #include "content/common/content_export.h"
10 #include "content/common/websocket.mojom.h"
11
12 namespace content {
13
14 class ChromeBlobStorageContext;
15 class StoragePartition;
16
17 // The WebSocketManager is a per child process instance that manages the
18 // lifecycle of WebSocketImpl objects. It is responsible for creating
19 // WebSocketImpl objects for each WebSocketRequest and throttling the number of
20 // WebSocketImpl objects in use.
21 class CONTENT_EXPORT WebSocketManager {
22 public:
23 // These public methods are called on the UI thread.
24
25 WebSocketManager(
26 int process_id,
27 StoragePartition* storage_partition,
28 const scoped_refptr<ChromeBlobStorageContext>& blob_storage_context);
29 ~WebSocketManager();
30
31 void CreateWebSocket(int render_frame_id, mojom::WebSocketRequest request);
32
33 private:
34 class IOThreadState;
35 IOThreadState* io_thread_state_;
36
37 DISALLOW_COPY_AND_ASSIGN(WebSocketManager);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698