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

Side by Side Diff: webkit/glue/multipart_response_delegate.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 | « webkit/glue/image_decoder.h ('k') | webkit/glue/multipart_response_delegate_unittest.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 #include "webkit/glue/multipart_response_delegate.h" 5 #include "webkit/glue/multipart_response_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
(...skipping 19 matching lines...) Expand all
30 "content-type", 30 "content-type",
31 "content-length", 31 "content-length",
32 "content-disposition", 32 "content-disposition",
33 "content-range", 33 "content-range",
34 "range", 34 "range",
35 "set-cookie" 35 "set-cookie"
36 }; 36 };
37 37
38 class HeaderCopier : public WebHTTPHeaderVisitor { 38 class HeaderCopier : public WebHTTPHeaderVisitor {
39 public: 39 public:
40 HeaderCopier(WebURLResponse* response) 40 explicit HeaderCopier(WebURLResponse* response)
41 : response_(response) { 41 : response_(response) {
42 } 42 }
43 virtual void visitHeader(const WebString& name, const WebString& value) { 43 virtual void visitHeader(const WebString& name, const WebString& value) {
44 const std::string& name_utf8 = name.utf8(); 44 const std::string& name_utf8 = name.utf8();
45 for (size_t i = 0; i < arraysize(kReplaceHeaders); ++i) { 45 for (size_t i = 0; i < arraysize(kReplaceHeaders); ++i) {
46 if (LowerCaseEqualsASCII(name_utf8, kReplaceHeaders[i])) 46 if (LowerCaseEqualsASCII(name_utf8, kReplaceHeaders[i]))
47 return; 47 return;
48 } 48 }
49 response_->setHTTPHeaderField(name, value); 49 response_->setHTTPHeaderField(name, value);
50 } 50 }
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 if (!base::StringToInt64(byte_range_upper_bound, content_range_upper_bound)) 395 if (!base::StringToInt64(byte_range_upper_bound, content_range_upper_bound))
396 return false; 396 return false;
397 if (!base::StringToInt64(byte_range_instance_size, 397 if (!base::StringToInt64(byte_range_instance_size,
398 content_range_instance_size)) { 398 content_range_instance_size)) {
399 return false; 399 return false;
400 } 400 }
401 return true; 401 return true;
402 } 402 }
403 403
404 } // namespace webkit_glue 404 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/image_decoder.h ('k') | webkit/glue/multipart_response_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698