| OLD | NEW |
| 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_USB_MOUNT_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_USB_MOUNT_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_USB_MOUNT_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_USB_MOUNT_OBSERVER_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 "chrome/browser/chromeos/cros/mount_library.h" | 12 #include "chrome/browser/chromeos/cros/mount_library.h" |
| 13 #include "chrome/common/notification_observer.h" | 13 #include "chrome/common/notification_observer.h" |
| 14 #include "chrome/common/notification_registrar.h" |
| 14 #include "chrome/common/notification_source.h" | 15 #include "chrome/common/notification_source.h" |
| 15 #include "chrome/common/notification_type.h" | 16 #include "chrome/common/notification_type.h" |
| 16 #include "chrome/common/notification_registrar.h" | |
| 17 | 17 |
| 18 class Browser; | 18 class Browser; |
| 19 class Profile; | 19 class Profile; |
| 20 | 20 |
| 21 namespace chromeos { // NOLINT | 21 namespace chromeos { // NOLINT |
| 22 | 22 |
| 23 // Used to monitor mount changes and popup a new window when | 23 // Used to monitor mount changes and popup a new window when |
| 24 // a new mounted usb device is found. | 24 // a new mounted usb device is found. |
| 25 class USBMountObserver : public chromeos::MountLibrary::Observer, | 25 class USBMountObserver : public chromeos::MountLibrary::Observer, |
| 26 public NotificationObserver { | 26 public NotificationObserver { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool small); | 60 bool small); |
| 61 | 61 |
| 62 std::vector<BrowserWithPath> browsers_; | 62 std::vector<BrowserWithPath> browsers_; |
| 63 NotificationRegistrar registrar_; | 63 NotificationRegistrar registrar_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(USBMountObserver); | 65 DISALLOW_COPY_AND_ASSIGN(USBMountObserver); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace chromeos | 68 } // namespace chromeos |
| 69 #endif // CHROME_BROWSER_CHROMEOS_USB_MOUNT_OBSERVER_H_ | 69 #endif // CHROME_BROWSER_CHROMEOS_USB_MOUNT_OBSERVER_H_ |
| OLD | NEW |