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

Side by Side Diff: chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_ID_MAPPING_HELPER_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_ID_MAPPING_HELPER_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_ID_MAPPING_HELPER_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_ID_MAPPING_HELPER_H__
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 } // namespace base 15 } // namespace base
16 16
17 namespace sync_driver { 17 namespace sync_driver {
18 class DeviceInfo; 18 class DeviceInfo;
19 } // namespace sync_driver 19 } // namespace sync_driver
20 20
21 class Profile; 21 class Profile;
(...skipping 21 matching lines...) Expand all
43 // updated with the mappings. The |device_info| objects will also be updated 43 // updated with the mappings. The |device_info| objects will also be updated
44 // with the public ids. 44 // with the public ids.
45 // The dictionary would have the public id as the key and the 45 // The dictionary would have the public id as the key and the
46 // device guid as the value. 46 // device guid as the value.
47 void CreateMappingForUnmappedDevices( 47 void CreateMappingForUnmappedDevices(
48 std::vector<sync_driver::DeviceInfo*>* device_info, 48 std::vector<sync_driver::DeviceInfo*>* device_info,
49 base::DictionaryValue* value); 49 base::DictionaryValue* value);
50 50
51 // Gets the device info for a given client id. If the device is not found 51 // Gets the device info for a given client id. If the device is not found
52 // the returned pointer would be null. 52 // the returned pointer would be null.
53 scoped_ptr<sync_driver::DeviceInfo> GetDeviceInfoForClientId( 53 std::unique_ptr<sync_driver::DeviceInfo> GetDeviceInfoForClientId(
54 const std::string& client_id, 54 const std::string& client_id,
55 const std::string& extension_id, 55 const std::string& extension_id,
56 Profile* profile); 56 Profile* profile);
57 57
58 } // namespace extensions 58 } // namespace extensions
59 59
60 #endif // CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_ID_MAPPING_HELPER_H__ 60 #endif // CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_ID_MAPPING_HELPER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698