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

Side by Side Diff: extensions/browser/api/web_request/form_data_parser.cc

Issue 1544433002: Replace RE2 import with a dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-Added LICENSE and OWNERS file Created 4 years, 12 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) 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
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
OLDNEW
« no previous file with comments | « extensions/browser/api/declarative_webrequest/webrequest_action.cc ('k') | extensions/common/image_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698