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

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

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 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
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "net/proxy/proxy_script_fetcher.h" 5 #include "net/proxy/proxy_script_fetcher.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "net/base/io_buffer.h" 12 #include "net/base/io_buffer.h"
13 #include "net/base/load_flags.h" 13 #include "net/base/load_flags.h"
14 #include "net/base/net_errors.h"
14 #include "net/url_request/url_request.h" 15 #include "net/url_request/url_request.h"
15 16
16 // TODO(eroman): 17 // TODO(eroman):
17 // - Support auth-prompts. 18 // - Support auth-prompts.
18 19
19 namespace net { 20 namespace net {
20 21
21 namespace { 22 namespace {
22 23
23 // The maximum size (in bytes) allowed for a PAC script. Responses exceeding 24 // The maximum size (in bytes) allowed for a PAC script. Responses exceeding
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 321 }
321 322
322 // static 323 // static
323 size_t ProxyScriptFetcher::SetSizeConstraintForUnittest(size_t size_bytes) { 324 size_t ProxyScriptFetcher::SetSizeConstraintForUnittest(size_t size_bytes) {
324 size_t prev = max_response_bytes; 325 size_t prev = max_response_bytes;
325 max_response_bytes = size_bytes; 326 max_response_bytes = size_bytes;
326 return prev; 327 return prev;
327 } 328 }
328 329
329 } // namespace net 330 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698