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

Side by Side Diff: chrome/browser/media_galleries/win/mtp_device_operations_util.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 // This file has several utility functions to open a media transfer protocol 5 // This file has several utility functions to open a media transfer protocol
6 // (MTP) device for communication, to enumerate the device contents, to read the 6 // (MTP) device for communication, to enumerate the device contents, to read the
7 // device file object, etc. All these tasks may take an arbitary long time 7 // device file object, etc. All these tasks may take an arbitary long time
8 // to complete. This file segregates those functionalities and runs them 8 // to complete. This file segregates those functionalities and runs them
9 // in the blocking pool thread rather than in the UI thread. 9 // in the blocking pool thread rather than in the UI thread.
10 10
11 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_ 11 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_
12 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_ 12 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_
13 13
14 #include <portabledeviceapi.h> 14 #include <portabledeviceapi.h>
15 #include <stddef.h>
15 16
16 #include <string> 17 #include <string>
17 18
18 #include "base/files/file.h" 19 #include "base/files/file.h"
19 #include "base/strings/string16.h" 20 #include "base/strings/string16.h"
20 #include "base/win/scoped_comptr.h" 21 #include "base/win/scoped_comptr.h"
21 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" 22 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h"
22 23
23 namespace media_transfer_protocol { 24 namespace media_transfer_protocol {
24 25
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Returns the identifier of the object specified by the |object_name|. 74 // Returns the identifier of the object specified by the |object_name|.
74 // |parent_id| specifies the object's parent identifier. 75 // |parent_id| specifies the object's parent identifier.
75 // |object_name| specifies the friendly name of the object. 76 // |object_name| specifies the friendly name of the object.
76 base::string16 GetObjectIdFromName(IPortableDevice* device, 77 base::string16 GetObjectIdFromName(IPortableDevice* device,
77 const base::string16& parent_id, 78 const base::string16& parent_id,
78 const base::string16& object_name); 79 const base::string16& object_name);
79 80
80 } // namespace media_transfer_protocol 81 } // namespace media_transfer_protocol
81 82
82 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_ 83 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698