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

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

Issue 16667014: Use a direct include of strings headers in chrome/browser/media_galleries/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 15
16 #include <string> 16 #include <string>
17 17
18 #include "base/platform_file.h" 18 #include "base/platform_file.h"
19 #include "base/string16.h" 19 #include "base/strings/string16.h"
20 #include "base/win/scoped_comptr.h" 20 #include "base/win/scoped_comptr.h"
21 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" 21 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h"
22 22
23 namespace chrome { 23 namespace chrome {
24 24
25 namespace media_transfer_protocol { 25 namespace media_transfer_protocol {
26 26
27 // Opens the device for communication. |pnp_device_id| specifies the plug and 27 // Opens the device for communication. |pnp_device_id| specifies the plug and
28 // play device ID string. On success, returns the IPortableDevice interface. 28 // play device ID string. On success, returns the IPortableDevice interface.
29 // On failure, returns NULL. 29 // On failure, returns NULL.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // |object_name| specifies the friendly name of the object. 77 // |object_name| specifies the friendly name of the object.
78 string16 GetObjectIdFromName(IPortableDevice* device, 78 string16 GetObjectIdFromName(IPortableDevice* device,
79 const string16& parent_id, 79 const string16& parent_id,
80 const string16& object_name); 80 const string16& object_name);
81 81
82 } // namespace media_transfer_protocol 82 } // namespace media_transfer_protocol
83 83
84 } // namespace chrome 84 } // namespace chrome
85 85
86 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_ 86 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OPERATIONS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698