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

Unified Diff: chrome/browser/media_gallery/media_device_notifications_window_win.h

Issue 10919051: Move device notification impl out of chrome/browser/media_gallery (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: modify for chromeos and win Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_gallery/media_device_notifications_window_win.h
diff --git a/chrome/browser/media_gallery/media_device_notifications_window_win.h b/chrome/browser/media_gallery/media_device_notifications_window_win.h
deleted file mode 100644
index 4783aeaefd668d4f5ec4826434b9d53c20f38a2e..0000000000000000000000000000000000000000
--- a/chrome/browser/media_gallery/media_device_notifications_window_win.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_
-#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_
-
-#include <windows.h>
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/file_path.h"
-#include "base/memory/ref_counted.h"
-
-typedef LRESULT (*VolumeNameFunc)(LPCWSTR drive,
- LPWSTR volume_name,
- unsigned int volume_name_len);
-namespace chrome {
-
-class MediaDeviceNotificationsWindowWin
- : public base::RefCountedThreadSafe<MediaDeviceNotificationsWindowWin> {
- public:
- MediaDeviceNotificationsWindowWin();
- // Only for use in unit tests.
- explicit MediaDeviceNotificationsWindowWin(VolumeNameFunc volumeNameFunc);
-
- LRESULT OnDeviceChange(UINT event_type, DWORD data);
-
- private:
- friend class base::RefCountedThreadSafe<MediaDeviceNotificationsWindowWin>;
-
- virtual ~MediaDeviceNotificationsWindowWin();
-
- void Init();
-
- LRESULT CALLBACK WndProc(HWND hwnd,
- UINT message,
- WPARAM wparam,
- LPARAM lparam);
-
- static LRESULT CALLBACK WndProcThunk(HWND hwnd,
- UINT message,
- WPARAM wparam,
- LPARAM lparam);
-
- void CheckDeviceTypeOnFileThread(const std::string& id,
- const FilePath::StringType& device_name,
- const FilePath& path);
-
- void ProcessMediaDeviceAttachedOnUIThread(
- const std::string& id,
- const FilePath::StringType& device_name,
- const FilePath& path);
-
- // The window class of |window_|.
- ATOM atom_;
-
- // The handle of the module that contains the window procedure of |window_|.
- HMODULE instance_;
-
- HWND window_;
- VolumeNameFunc volume_name_func_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaDeviceNotificationsWindowWin);
-};
-
-} // namespace chrome
-
-#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698