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

Side by Side Diff: net/url_request/url_request_netlog_params.h

Issue 2905007: Add the URLRequest's priority to the net-log.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address cbentzel comments Created 10 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_netlog_params.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h"
10 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
11 #include "net/base/net_log.h" 12 #include "net/base/net_log.h"
13 #include "net/base/request_priority.h"
12 14
13 // Holds the parameters to emit to the NetLog when starting a URLRequest. 15 // Holds the parameters to emit to the NetLog when starting a URLRequest.
14 class URLRequestStartEventParameters : public net::NetLog::EventParameters { 16 class URLRequestStartEventParameters : public net::NetLog::EventParameters {
15 public: 17 public:
16 URLRequestStartEventParameters(const GURL& url, 18 URLRequestStartEventParameters(const GURL& url,
17 const std::string& method, 19 const std::string& method,
18 int load_flags); 20 int load_flags,
21 net::RequestPriority priority);
19 22
20 const GURL& url() const { 23 const GURL& url() const {
21 return url_; 24 return url_;
22 } 25 }
23 26
24 virtual Value* ToValue() const; 27 virtual Value* ToValue() const;
25 28
26 private: 29 private:
27 const GURL url_; 30 const GURL url_;
28 const std::string method_; 31 const std::string method_;
29 const int load_flags_; 32 const int load_flags_;
33 const net::RequestPriority priority_;
34
35 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters);
30 }; 36 };
31 37
32 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ 38 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_netlog_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698