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

Side by Side Diff: net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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/trace_net_log_observer_unittest.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_win.h » ('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 #include "net/proxy/dhcp_proxy_script_adapter_fetcher_win.h" 5 #include "net/proxy/dhcp_proxy_script_adapter_fetcher_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
12 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
13 #include "base/task_runner.h" 12 #include "base/task_runner.h"
14 #include "base/time/time.h" 13 #include "base/time/time.h"
15 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
16 #include "net/proxy/dhcpcsvc_init_win.h" 15 #include "net/proxy/dhcpcsvc_init_win.h"
17 #include "net/proxy/proxy_script_fetcher_impl.h" 16 #include "net/proxy/proxy_script_fetcher_impl.h"
18 #include "net/url_request/url_request_context.h" 17 #include "net/url_request/url_request_context.h"
19 18
20 #include <windows.h> 19 #include <windows.h>
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // first null in case of embedded NULLs; this is the outer 282 // first null in case of embedded NULLs; this is the outer
284 // constructor that takes the result of c_str() on the inner. If 283 // constructor that takes the result of c_str() on the inner. If
285 // the server is giving us back a buffer with embedded NULLs, 284 // the server is giving us back a buffer with embedded NULLs,
286 // something is broken anyway. Finally, trim trailing whitespace. 285 // something is broken anyway. Finally, trim trailing whitespace.
287 std::string result(std::string(data, count_bytes).c_str()); 286 std::string result(std::string(data, count_bytes).c_str());
288 base::TrimWhitespaceASCII(result, base::TRIM_TRAILING, &result); 287 base::TrimWhitespaceASCII(result, base::TRIM_TRAILING, &result);
289 return result; 288 return result;
290 } 289 }
291 290
292 } // namespace net 291 } // namespace net
OLDNEW
« no previous file with comments | « net/log/trace_net_log_observer_unittest.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698