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 "extensions/common/permissions/socket_permission_entry.h" | 5 #include "extensions/common/permissions/socket_permission_entry.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <cstdlib> | 9 #include <cstdlib> |
| 10 #include <memory> |
10 #include <sstream> | 11 #include <sstream> |
11 #include <tuple> | 12 #include <tuple> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/logging.h" | 15 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "extensions/common/permissions/api_permission.h" | 19 #include "extensions/common/permissions/api_permission.h" |
20 #include "extensions/common/permissions/socket_permission.h" | 20 #include "extensions/common/permissions/socket_permission.h" |
21 #include "url/url_canon.h" | 21 #include "url/url_canon.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 using content::SocketPermissionRequest; | 25 using content::SocketPermissionRequest; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 if (pattern_.port == kWildcardPortNumber) | 207 if (pattern_.port == kWildcardPortNumber) |
208 result.append(1, kColon).append(kWildcard); | 208 result.append(1, kColon).append(kWildcard); |
209 else | 209 else |
210 result.append(1, kColon).append(base::UintToString(pattern_.port)); | 210 result.append(1, kColon).append(base::UintToString(pattern_.port)); |
211 | 211 |
212 return result; | 212 return result; |
213 } | 213 } |
214 | 214 |
215 } // namespace extensions | 215 } // namespace extensions |
OLD | NEW |