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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "net/base/escape.h" | 14 #include "net/base/escape.h" |
15 #include "net/url_request/url_request.h" | 15 #include "net/url_request/url_request.h" |
16 #include "third_party/re2/re2/re2.h" | 16 #include "third_party/re2/src/re2/re2.h" |
17 | 17 |
18 using base::DictionaryValue; | 18 using base::DictionaryValue; |
19 using base::ListValue; | 19 using base::ListValue; |
20 using base::StringPiece; | 20 using base::StringPiece; |
21 using re2::RE2; | 21 using re2::RE2; |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 if (value_pattern().Match(header, | 587 if (value_pattern().Match(header, |
588 kContentDispositionLength, header.size(), | 588 kContentDispositionLength, header.size(), |
589 RE2::UNANCHORED, groups, 2)) { | 589 RE2::UNANCHORED, groups, 2)) { |
590 value->set(groups[1].data(), groups[1].size()); | 590 value->set(groups[1].data(), groups[1].size()); |
591 *value_assigned = true; | 591 *value_assigned = true; |
592 } | 592 } |
593 return true; | 593 return true; |
594 } | 594 } |
595 | 595 |
596 } // namespace extensions | 596 } // namespace extensions |
OLD | NEW |