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

Side by Side Diff: chrome/common/extensions/image_writer/image_writer_test_util_mac.h

Issue 294163008: Adds USB writing for OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@list-devices
Patch Set: Creates a location for code shared between browser and utility process. Created 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_MAC_H_
6 #define CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_MAC_H_
7
8 #include <CoreFoundation/CoreFoundation.h>
9 #include <IOKit/storage/IOStorageProtocolCharacteristics.h>
10
11 #include "base/mac/foundation_util.h"
12 #include "base/strings/sys_string_conversions.h"
13
14 namespace extensions {
15 namespace image_writer {
16
17 // The different types of disks we want to configure.
18 typedef enum DriveType {
Robert Sesek 2014/06/10 19:47:46 In C++, just |enum DriveType| is enough to declare
Drew Haven 2014/06/12 02:24:26 Done. Bad habit.
19 FIXED,
20 USB,
21 SD,
22 CD,
23 } DriveType;
24
25 // Creates a disk-description dictionary.
26 base::ScopedCFTypeRef<CFDictionaryRef> CreateDiskDictionary(
27 const std::string& bsd_name,
28 const std::string& vendor,
29 const std::string& model,
30 int64 capacity,
31 DriveType type);
32
33 } // image_writer
34 } // extensions
35
36 #endif // CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698