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

Side by Side Diff: net/http/http_server_properties.h

Issue 1572753003: QUIC - Allow cronet apps to specify how many server configs are to be (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments in Patch set 4 Created 4 years, 11 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
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 virtual bool SetQuicServerInfo(const QuicServerId& server_id, 373 virtual bool SetQuicServerInfo(const QuicServerId& server_id,
374 const std::string& server_info) = 0; 374 const std::string& server_info) = 0;
375 375
376 // Get QuicServerInfo (in std::string form) for the given |server_id|. 376 // Get QuicServerInfo (in std::string form) for the given |server_id|.
377 virtual const std::string* GetQuicServerInfo( 377 virtual const std::string* GetQuicServerInfo(
378 const QuicServerId& server_id) = 0; 378 const QuicServerId& server_id) = 0;
379 379
380 // Returns all persistent QuicServerInfo objects. 380 // Returns all persistent QuicServerInfo objects.
381 virtual const QuicServerInfoMap& quic_server_info_map() const = 0; 381 virtual const QuicServerInfoMap& quic_server_info_map() const = 0;
382 382
383 // Returns the number of server configs (QuicServerInfo objects) persisted.
384 virtual size_t max_server_configs_stored_in_properties() const = 0;
385
386 // Sets the number of server configs (QuicServerInfo objects) to be persisted.
387 virtual void SetMaxServerConfigsStoredInProperties(
388 size_t max_server_configs_stored_in_properties) = 0;
389
383 private: 390 private:
384 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 391 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
385 }; 392 };
386 393
387 } // namespace net 394 } // namespace net
388 395
389 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 396 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698