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

Side by Side Diff: content/browser/renderer_host/websocket_dispatcher_host.h

Issue 1461283002: [DO NOT COMMIT] mojo datapipe performance measurement Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/shared_memory.h"
17 #include "base/time/time.h" 18 #include "base/time/time.h"
18 #include "base/timer/timer.h" 19 #include "base/timer/timer.h"
19 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
20 #include "content/common/websocket.h" 21 #include "content/common/websocket.h"
21 #include "content/public/browser/browser_message_filter.h" 22 #include "content/public/browser/browser_message_filter.h"
22 23
23 namespace net { 24 namespace net {
24 class URLRequestContext; 25 class URLRequestContext;
25 } // namespace net 26 } // namespace net
26 27
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool CanReadRawCookies() const; 119 bool CanReadRawCookies() const;
119 120
120 int render_process_id() const { return process_id_; } 121 int render_process_id() const { return process_id_; }
121 122
122 // Returns a BlobStorageContext associated with this object's render process. 123 // Returns a BlobStorageContext associated with this object's render process.
123 // The pointer will be valid for as long this object is. 124 // The pointer will be valid for as long this object is.
124 storage::BlobStorageContext* blob_storage_context() const; 125 storage::BlobStorageContext* blob_storage_context() const;
125 126
126 // Returns the StoragePartition associated with this render process. 127 // Returns the StoragePartition associated with this render process.
127 StoragePartition* storage_partition() const { return storage_partition_; } 128 StoragePartition* storage_partition() const { return storage_partition_; }
129 void SendLoaderTransferTest_SetDataBuffer(
130 int routing_id, base::SharedMemoryHandle handle);
131 void SendLoaderTransferTest_Ack(int routing_id);
132 void SendLoaderTransferTest_Done(int routing_id);
128 133
129 protected: 134 protected:
130 // For testing. Specify a factory method that creates mock version of 135 // For testing. Specify a factory method that creates mock version of
131 // WebSocketHost. 136 // WebSocketHost.
132 WebSocketDispatcherHost(int process_id, 137 WebSocketDispatcherHost(int process_id,
133 const GetRequestContextCallback& get_context_callback, 138 const GetRequestContextCallback& get_context_callback,
134 const WebSocketHostFactory& websocket_host_factory); 139 const WebSocketHostFactory& websocket_host_factory);
135 140
136 int num_pending_connections() const { return num_pending_connections_; } 141 int num_pending_connections() const { return num_pending_connections_; }
137 142
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 208
204 // Needed to access to the StoragePartition for browser-side blob sending. 209 // Needed to access to the StoragePartition for browser-side blob sending.
205 StoragePartition* const storage_partition_; 210 StoragePartition* const storage_partition_;
206 211
207 DISALLOW_COPY_AND_ASSIGN(WebSocketDispatcherHost); 212 DISALLOW_COPY_AND_ASSIGN(WebSocketDispatcherHost);
208 }; 213 };
209 214
210 } // namespace content 215 } // namespace content
211 216
212 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 217 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/websocket_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698