OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/net/request_group_util.h" | 5 #import "ios/web/net/request_group_util.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
13 #import "net/base/mac/url_conversions.h" | 13 #import "net/base/mac/url_conversions.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 return request_group_id; | 110 return request_group_id; |
111 if (application_scheme && | 111 if (application_scheme && |
112 [[request.mainDocumentURL scheme] | 112 [[request.mainDocumentURL scheme] |
113 caseInsensitiveCompare:application_scheme] == NSOrderedSame) { | 113 caseInsensitiveCompare:application_scheme] == NSOrderedSame) { |
114 return ExtractRequestGroupIDFromURL(request.mainDocumentURL); | 114 return ExtractRequestGroupIDFromURL(request.mainDocumentURL); |
115 } | 115 } |
116 return nil; | 116 return nil; |
117 } | 117 } |
118 | 118 |
119 } // namespace web | 119 } // namespace web |
OLD | NEW |