summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_layer.h
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 23:52:07 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 23:52:07 +0000
commit650e2cae692b1ec5d4f079043b466c59abef4f4b (patch)
tree77f4fd57ef1fabb4b25445e7c27297749f27f425 /net/http/http_network_layer.h
parent53f912877e60a6adbf93f399f7ce56cbbc366120 (diff)
downloadchromium_src-650e2cae692b1ec5d4f079043b466c59abef4f4b.zip
chromium_src-650e2cae692b1ec5d4f079043b466c59abef4f4b.tar.gz
chromium_src-650e2cae692b1ec5d4f079043b466c59abef4f4b.tar.bz2
Expand the options for how FLIP runs. The GFE team needs
the ability to run a client with ssl & compression turned off. Update the command line to accomodate. BUG=none TEST=none Review URL: http://codereview.chromium.org/315006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_layer.h')
-rw-r--r--net/http/http_network_layer.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h
index 7344c7b..84f966d 100644
--- a/net/http/http_network_layer.h
+++ b/net/http/http_network_layer.h
@@ -5,6 +5,8 @@
#ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_
#define NET_HTTP_HTTP_NETWORK_LAYER_H_
+#include <string>
+
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
#include "net/http/http_transaction_factory.h"
@@ -50,8 +52,13 @@ class HttpNetworkLayer : public HttpTransactionFactory {
virtual HttpNetworkSession* GetSession();
virtual void Suspend(bool suspend);
- // Enable the flip protocol. Default is false.
- static void EnableFlip(bool enable);
+ // Enable the flip protocol.
+ // Without calling this function, FLIP is disabled. The mode can be:
+ // "" : (default) SSL and compression are enabled.
+ // "no-ssl" : disables SSL.
+ // "no-compress" : disables compression.
+ // "none" : disables both SSL and compression.
+ static void EnableFlip(const std::string& mode);
private:
// The factory we will use to create network sockets.