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

Unified Diff: content/browser/android/deferred_download_observer.h

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix failing tests/bugs Created 4 years, 6 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: content/browser/android/deferred_download_observer.h
diff --git a/content/browser/android/deferred_download_observer.h b/content/browser/android/deferred_download_observer.h
deleted file mode 100644
index 0c11db8cee50d4bc95dd8415758d417daf45d06b..0000000000000000000000000000000000000000
--- a/content/browser/android/deferred_download_observer.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 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 CONTENT_BROWSER_ANDROID_DEFERRED_DOWNLOAD_OBSERVER_H_
-#define CONTENT_BROWSER_ANDROID_DEFERRED_DOWNLOAD_OBSERVER_H_
-
-#include "base/callback.h"
-#include "base/containers/scoped_ptr_hash_map.h"
-#include "base/macros.h"
-#include "content/public/browser/web_contents_observer.h"
-
-namespace content {
-class WebContents;
-
-// Class for handling deferred downloads inside a WebContents. In document
-// mode, it is possible that a download starts before ContentViewCore gets
-// created. This class listens to the WebContentsObserver::WasShown() method
-// before running the download tasks to make sure ContentViewCore is attached
-// to WebContents.
-// TODO(qinmin): Remove this when java Tab object creation is no longer pending
-// on Activity creation.
-class DeferredDownloadObserver : public WebContentsObserver {
- public:
- DeferredDownloadObserver(WebContents* web_contents,
- const base::Closure& deferred_download_cb);
- ~DeferredDownloadObserver() override;
-
- // WebContentsObserver method.
- void WasShown() override;
- void WebContentsDestroyed() override;
-
- private:
- // Callback to run when WebContents gets shown.
- base::Closure deferred_download_cb_;
-
- DISALLOW_COPY_AND_ASSIGN(DeferredDownloadObserver);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_ANDROID_DEFERRED_DOWNLOAD_OBSERVER_H_
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/android/deferred_download_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698