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

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

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_network_layer.cc » ('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) 2011 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_NETWORK_LAYER_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_
6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ 6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
40 // Without calling this function, SPDY is disabled. The mode can be: 40 // Without calling this function, SPDY is disabled. The mode can be:
41 // "" : (default) SSL and compression are enabled, flow 41 // "" : (default) SSL and compression are enabled, flow
42 // control disabled. 42 // control disabled.
43 // "no-ssl" : disables SSL. 43 // "no-ssl" : disables SSL.
44 // "no-compress" : disables compression. 44 // "no-compress" : disables compression.
45 // "flow-control": enables flow control. 45 // "flow-control": enables flow control.
46 // "none" : disables both SSL and compression. 46 // "none" : disables both SSL and compression.
47 static void EnableSpdy(const std::string& mode); 47 static void EnableSpdy(const std::string& mode);
48 48
49 // HttpTransactionFactory methods: 49 // HttpTransactionFactory methods:
50 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans) OVERRIDE; 50 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans,
51 HttpTransactionDelegate* delegate) OVERRIDE;
51 virtual HttpCache* GetCache() OVERRIDE; 52 virtual HttpCache* GetCache() OVERRIDE;
52 virtual HttpNetworkSession* GetSession() OVERRIDE; 53 virtual HttpNetworkSession* GetSession() OVERRIDE;
53 54
54 // base::SystemMonitor::PowerObserver methods: 55 // base::SystemMonitor::PowerObserver methods:
55 virtual void OnSuspend() OVERRIDE; 56 virtual void OnSuspend() OVERRIDE;
56 virtual void OnResume() OVERRIDE; 57 virtual void OnResume() OVERRIDE;
57 58
58 private: 59 private:
59 const scoped_refptr<HttpNetworkSession> session_; 60 const scoped_refptr<HttpNetworkSession> session_;
60 bool suspended_; 61 bool suspended_;
61 }; 62 };
62 63
63 } // namespace net 64 } // namespace net
64 65
65 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ 66 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_
OLDNEW
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_network_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698