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

Side by Side Diff: chrome/browser/chromeos/cros/mount_library.h

Issue 5854003: Remove CrOS hack from ppapi.gyp that made the include directories work. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_CHROMEOS_CROS_MOUNT_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/singleton.h" 13 #include "base/singleton.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "cros/chromeos_mount.h" 15 #include "third_party/cros/chromeos_mount.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 // This class handles the interaction with the ChromeOS mount library APIs. 19 // This class handles the interaction with the ChromeOS mount library APIs.
20 // Classes can add themselves as observers. Users can get an instance of this 20 // Classes can add themselves as observers. Users can get an instance of this
21 // library class like this: chromeos::CrosLibrary::Get()->GetMountLibrary() 21 // library class like this: chromeos::CrosLibrary::Get()->GetMountLibrary()
22 class MountLibrary { 22 class MountLibrary {
23 public: 23 public:
24 // Used to house an instance of each found mount device. 24 // Used to house an instance of each found mount device.
25 struct Disk { 25 struct Disk {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual bool MountPath(const char* device_path) = 0; 61 virtual bool MountPath(const char* device_path) = 0;
62 62
63 // Factory function, creates a new instance and returns ownership. 63 // Factory function, creates a new instance and returns ownership.
64 // For normal usage, access the singleton via CrosLibrary::Get(). 64 // For normal usage, access the singleton via CrosLibrary::Get().
65 static MountLibrary* GetImpl(bool stub); 65 static MountLibrary* GetImpl(bool stub);
66 }; 66 };
67 67
68 } // namespace chromeos 68 } // namespace chromeos
69 69
70 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ 70 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_mount_library.h ('k') | chrome/browser/chromeos/cros/network_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698