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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/net_api.h" 13 #include "net/base/net_export.h"
14 #include "net/base/net_log.h" 14 #include "net/base/net_log.h"
15 #include "net/base/request_priority.h" 15 #include "net/base/request_priority.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 // Holds the parameters to emit to the NetLog when starting a URLRequest. 19 // Holds the parameters to emit to the NetLog when starting a URLRequest.
20 class NET_API URLRequestStartEventParameters : public NetLog::EventParameters { 20 class NET_EXPORT URLRequestStartEventParameters
21 : public NetLog::EventParameters {
21 public: 22 public:
22 URLRequestStartEventParameters(const GURL& url, 23 URLRequestStartEventParameters(const GURL& url,
23 const std::string& method, 24 const std::string& method,
24 int load_flags, 25 int load_flags,
25 RequestPriority priority); 26 RequestPriority priority);
26 27
27 const GURL& url() const { 28 const GURL& url() const {
28 return url_; 29 return url_;
29 } 30 }
30 31
31 int load_flags() const { 32 int load_flags() const {
32 return load_flags_; 33 return load_flags_;
33 } 34 }
34 35
35 virtual base::Value* ToValue() const; 36 virtual base::Value* ToValue() const;
36 37
37 private: 38 private:
38 const GURL url_; 39 const GURL url_;
39 const std::string method_; 40 const std::string method_;
40 const int load_flags_; 41 const int load_flags_;
41 const RequestPriority priority_; 42 const RequestPriority priority_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters); 44 DISALLOW_COPY_AND_ASSIGN(URLRequestStartEventParameters);
44 }; 45 };
45 46
46 } // namespace net 47 } // namespace net
47 48
48 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_ 49 #endif // NET_URL_REQUEST_URL_REQUEST_NETLOG_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698