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

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

Issue 1128083003: Converted bare pointer to scoped_ptr in net/url_request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted the comment desciption. Created 5 years, 7 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/log/net_log_util.cc ('k') | net/url_request/url_request.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) 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_URL_REQUEST_URL_REQUEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // Gets the total amount of data received from network after SSL decoding and 357 // Gets the total amount of data received from network after SSL decoding and
358 // proxy handling. 358 // proxy handling.
359 int64 GetTotalReceivedBytes() const; 359 int64 GetTotalReceivedBytes() const;
360 360
361 // Returns the current load state for the request. The returned value's 361 // Returns the current load state for the request. The returned value's
362 // |param| field is an optional parameter describing details related to the 362 // |param| field is an optional parameter describing details related to the
363 // load state. Not all load states have a parameter. 363 // load state. Not all load states have a parameter.
364 LoadStateWithParam GetLoadState() const; 364 LoadStateWithParam GetLoadState() const;
365 365
366 // Returns a partial representation of the request's state as a value, for 366 // Returns a partial representation of the request's state as a value, for
367 // debugging. Caller takes ownership of returned value. 367 // debugging.
368 base::Value* GetStateAsValue() const; 368 scoped_ptr<base::Value> GetStateAsValue() const;
369 369
370 // Logs information about the what external object currently blocking the 370 // Logs information about the what external object currently blocking the
371 // request. LogUnblocked must be called before resuming the request. This 371 // request. LogUnblocked must be called before resuming the request. This
372 // can be called multiple times in a row either with or without calling 372 // can be called multiple times in a row either with or without calling
373 // LogUnblocked between calls. |blocked_by| must not be NULL or have length 373 // LogUnblocked between calls. |blocked_by| must not be NULL or have length
374 // 0. 374 // 0.
375 void LogBlockedBy(const char* blocked_by); 375 void LogBlockedBy(const char* blocked_by);
376 376
377 // Just like LogBlockedBy, but also makes GetLoadState return source as the 377 // Just like LogBlockedBy, but also makes GetLoadState return source as the
378 // |param| in the value returned by GetLoadState. Calling LogUnblocked or 378 // |param| in the value returned by GetLoadState. Calling LogUnblocked or
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 817
818 // The proxy server used for this request, if any. 818 // The proxy server used for this request, if any.
819 HostPortPair proxy_server_; 819 HostPortPair proxy_server_;
820 820
821 DISALLOW_COPY_AND_ASSIGN(URLRequest); 821 DISALLOW_COPY_AND_ASSIGN(URLRequest);
822 }; 822 };
823 823
824 } // namespace net 824 } // namespace net
825 825
826 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 826 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/log/net_log_util.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698