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

Side by Side Diff: content/public/browser/android/download_controller_android.h

Issue 11112022: Add DownloadControllerAndroid public interface for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding OWNERS file Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_
7
8 namespace content {
9 class DownloadItem;
10 class RenderViewHost;
11 class WebContents;
12
13 // Interface to request GET downloads and send notifications for POST
14 // downloads.
15 class DownloadControllerAndroid {
16 public:
17 // Returns the singleton instance of the DownloadControllerAndroid.
18 static DownloadControllerAndroid* Get();
19
20 // Starts a new download request with Android. Should be called on the
21 // UI thread.
22 virtual void CreateGETDownload(RenderViewHost* source, int request_id) = 0;
23
24 // Should be called when a POST download is started. Notifies the embedding
25 // app about the download. Should be called on the UI thread.
26 virtual void OnPostDownloadStarted(WebContents* web_contents,
27 DownloadItem* download_item) = 0;
28 protected:
29 virtual ~DownloadControllerAndroid() {};
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698