| OLD | NEW |
| 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 "extensions/browser/api/web_request/form_data_parser.h" | 5 #include "extensions/browser/api/web_request/form_data_parser.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 11 #include "base/macros.h" | 13 #include "base/macros.h" |
| 12 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 13 #include "base/values.h" | 15 #include "base/values.h" |
| 14 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
| 15 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
| 16 #include "third_party/re2/src/re2/re2.h" | 18 #include "third_party/re2/src/re2/re2.h" |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 if (value_pattern().Match(header, | 589 if (value_pattern().Match(header, |
| 588 kContentDispositionLength, header.size(), | 590 kContentDispositionLength, header.size(), |
| 589 RE2::UNANCHORED, groups, 2)) { | 591 RE2::UNANCHORED, groups, 2)) { |
| 590 value->set(groups[1].data(), groups[1].size()); | 592 value->set(groups[1].data(), groups[1].size()); |
| 591 *value_assigned = true; | 593 *value_assigned = true; |
| 592 } | 594 } |
| 593 return true; | 595 return true; |
| 594 } | 596 } |
| 595 | 597 |
| 596 } // namespace extensions | 598 } // namespace extensions |
| OLD | NEW |