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

Side by Side Diff: extensions/common/permissions/socket_permission_entry.cc

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 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
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
OLDNEW
« no previous file with comments | « extensions/common/permissions/socket_permission_data.cc ('k') | extensions/common/permissions/socket_permission_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698