OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * | 10 * |
(...skipping 12 matching lines...) Expand all Loading... |
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 | 30 |
31 #include "core/inspector/ContentSearchUtils.h" | 31 #include "core/inspector/ContentSearchUtils.h" |
32 | 32 |
33 #include "core/inspector/InspectorValues.h" | |
34 #include "core/platform/text/RegularExpression.h" | 33 #include "core/platform/text/RegularExpression.h" |
35 #include <wtf/StdLibExtras.h> | 34 #include <wtf/StdLibExtras.h> |
36 | 35 |
37 using namespace std; | 36 using namespace std; |
38 | 37 |
39 namespace WebCore { | 38 namespace WebCore { |
40 namespace ContentSearchUtils { | 39 namespace ContentSearchUtils { |
41 | 40 |
42 namespace { | 41 namespace { |
43 // This should be kept the same as the one in front-end/utilities.js | 42 // This should be kept the same as the one in front-end/utilities.js |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 } | 209 } |
211 | 210 |
212 String findSourceMapURL(const String& content, MagicCommentType commentType) | 211 String findSourceMapURL(const String& content, MagicCommentType commentType) |
213 { | 212 { |
214 return findMagicComment(content, "sourceMappingURL", commentType); | 213 return findMagicComment(content, "sourceMappingURL", commentType); |
215 } | 214 } |
216 | 215 |
217 } // namespace ContentSearchUtils | 216 } // namespace ContentSearchUtils |
218 } // namespace WebCore | 217 } // namespace WebCore |
219 | 218 |
OLD | NEW |