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

Unified Diff: chrome/browser/chromeos/arc/arc_downloads_watcher_service.h

Issue 2441563002: arc: Create intermediate directories in c/b/c/arc (Closed)
Patch Set: Re-rebase to ToT Created 4 years, 2 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/chromeos/arc/arc_downloads_watcher_service.h
diff --git a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
deleted file mode 100644
index eabc575a8683b9773cf7cb2354e58ea8ceeb0c31..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2016 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_CHROMEOS_ARC_ARC_DOWNLOADS_WATCHER_SERVICE_H_
-#define CHROME_BROWSER_CHROMEOS_ARC_ARC_DOWNLOADS_WATCHER_SERVICE_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "components/arc/arc_service.h"
-#include "components/arc/common/file_system.mojom.h"
-#include "components/arc/instance_holder.h"
-#include "mojo/public/cpp/bindings/array.h"
-#include "mojo/public/cpp/bindings/string.h"
-
-namespace base {
-class FilePath;
-} // namespace base
-
-namespace arc {
-
-class ArcBridgeService;
-
-// Returns true if the file path has a media extension supported by Android.
-bool HasAndroidSupportedMediaExtension(const base::FilePath& path);
-
-// Watches Downloads directory and registers newly created media files to
-// Android MediaProvider.
-class ArcDownloadsWatcherService
- : public ArcService,
- public InstanceHolder<mojom::FileSystemInstance>::Observer {
- public:
- explicit ArcDownloadsWatcherService(ArcBridgeService* bridge_service);
- ~ArcDownloadsWatcherService() override;
-
- // InstanceHolder<mojom::FileSystemInstance>::Observer
- void OnInstanceReady() override;
- void OnInstanceClosed() override;
-
- private:
- class DownloadsWatcher;
-
- void StartWatchingDownloads();
- void StopWatchingDownloads();
-
- void OnDownloadsChanged(mojo::Array<mojo::String> paths);
-
- std::unique_ptr<DownloadsWatcher> watcher_;
-
- // Note: This should remain the last member so it'll be destroyed and
- // invalidate the weak pointers before any other members are destroyed.
- base::WeakPtrFactory<ArcDownloadsWatcherService> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ArcDownloadsWatcherService);
-};
-
-} // namespace arc
-
-#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_DOWNLOADS_WATCHER_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698