| Index: chrome/browser/media_galleries/linux/mtp_device_task_helper_map_service.h
|
| diff --git a/chrome/browser/media_galleries/linux/mtp_device_task_helper_map_service.h b/chrome/browser/media_galleries/linux/mtp_device_task_helper_map_service.h
|
| deleted file mode 100644
|
| index 21543f1792b692b01809fef4857aa88890617d39..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/media_galleries/linux/mtp_device_task_helper_map_service.h
|
| +++ /dev/null
|
| @@ -1,66 +0,0 @@
|
| -// Copyright 2013 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_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVICE_H_
|
| -#define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVICE_H_
|
| -
|
| -#include <map>
|
| -#include <string>
|
| -
|
| -#include "base/lazy_instance.h"
|
| -#include "base/macros.h"
|
| -
|
| -class MTPDeviceTaskHelper;
|
| -
|
| -// MTPDeviceTaskHelperMapService manages MTPDeviceTaskHelper objects.
|
| -// MTPDeviceTaskHelperMapService lives on the UI thread.
|
| -class MTPDeviceTaskHelperMapService {
|
| - public:
|
| - static MTPDeviceTaskHelperMapService* GetInstance();
|
| -
|
| - // Creates and returns the MTPDeviceTaskHelper object for the storage device
|
| - // specified by the |storage_name|.
|
| - MTPDeviceTaskHelper* CreateDeviceTaskHelper(const std::string& storage_name,
|
| - const bool read_only);
|
| -
|
| - // Destroys the MTPDeviceTaskHelper object created by
|
| - // CreateDeviceTaskHelper().
|
| - // |storage_name| specifies the name of the storage device.
|
| - void DestroyDeviceTaskHelper(const std::string& storage_name,
|
| - const bool read_only);
|
| -
|
| - // Gets the MTPDeviceTaskHelper object associated with the device storage.
|
| - // |storage_name| specifies the name of the storage device.
|
| - // Return NULL if the |storage_name| is no longer valid (e.g. because the
|
| - // corresponding storage device is detached, etc).
|
| - MTPDeviceTaskHelper* GetDeviceTaskHelper(const std::string& storage_name,
|
| - const bool read_only);
|
| -
|
| - private:
|
| - friend struct base::DefaultLazyInstanceTraits<MTPDeviceTaskHelperMapService>;
|
| -
|
| - // A key to be used in TaskHelperMap.
|
| - typedef std::string MTPDeviceTaskHelperKey;
|
| -
|
| - // Gets a key from |storage_name| and |read_only|.
|
| - static MTPDeviceTaskHelperKey GetMTPDeviceTaskHelperKey(
|
| - const std::string& storage_name,
|
| - const bool read_only);
|
| -
|
| - // Key: A combined value with storage_name and read_only.
|
| - // Value: MTPDeviceTaskHelper object.
|
| - typedef std::map<MTPDeviceTaskHelperKey, MTPDeviceTaskHelper*> TaskHelperMap;
|
| -
|
| - // Get access to this class using GetInstance() method.
|
| - MTPDeviceTaskHelperMapService();
|
| - ~MTPDeviceTaskHelperMapService();
|
| -
|
| - // Mapping of |storage_name| and MTPDeviceTaskHelper*.
|
| - // TaskHelperMap owns MTPDeviceTaskHelper objects.
|
| - TaskHelperMap task_helper_map_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(MTPDeviceTaskHelperMapService);
|
| -};
|
| -
|
| -#endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVICE_H_
|
|
|