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

Side by Side Diff: content/public/browser/resource_dispatcher_host.h

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved DownloadControllerAndroid(Impl) to chrome/ 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "net/url_request/url_request.h"
14 15
15 namespace net { 16 namespace net {
16 class URLRequest; 17 class URLRequest;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 21
22 class GlobalRequestID;
21 class DownloadItem; 23 class DownloadItem;
22 class ResourceContext; 24 class ResourceContext;
23 class ResourceDispatcherHostDelegate; 25 class ResourceDispatcherHostDelegate;
24 struct DownloadSaveInfo; 26 struct DownloadSaveInfo;
25 struct Referrer; 27 struct Referrer;
26 class RenderFrameHost; 28 class RenderFrameHost;
27 29
28 class CONTENT_EXPORT ResourceDispatcherHost { 30 class CONTENT_EXPORT ResourceDispatcherHost {
29 public: 31 public:
30 // Returns the singleton instance of the ResourceDispatcherHost. 32 // Returns the singleton instance of the ResourceDispatcherHost.
(...skipping 13 matching lines...) Expand all
44 // delegate have a longer lifetime than the ResourceDispatcherHost. 46 // delegate have a longer lifetime than the ResourceDispatcherHost.
45 virtual void SetDelegate(ResourceDispatcherHostDelegate* delegate) = 0; 47 virtual void SetDelegate(ResourceDispatcherHostDelegate* delegate) = 0;
46 48
47 // Controls whether third-party sub-content can pop-up HTTP basic auth 49 // Controls whether third-party sub-content can pop-up HTTP basic auth
48 // dialog boxes. 50 // dialog boxes.
49 virtual void SetAllowCrossOriginAuthPrompt(bool value) = 0; 51 virtual void SetAllowCrossOriginAuthPrompt(bool value) = 0;
50 52
51 // Clears the ResourceDispatcherHostLoginDelegate associated with the request. 53 // Clears the ResourceDispatcherHostLoginDelegate associated with the request.
52 virtual void ClearLoginDelegateForRequest(net::URLRequest* request) = 0; 54 virtual void ClearLoginDelegateForRequest(net::URLRequest* request) = 0;
53 55
56 // Retrieves a net::URLRequest. Must be called from the IO thread.
57 virtual net::URLRequest* GetURLRequest(
58 const content::GlobalRequestID& request_id) = 0;
no sievers 2016/06/07 21:35:23 @Min: you think it's straightforward to maybe remo
Jinsuk Kim 2016/06/08 06:29:08 URLRequest instance is necessary not only for cook
no sievers 2016/06/08 18:28:22 It's actually also obsolete with kSystemDownloadMa
qinmin 2016/06/08 18:31:37 Due to some user feedback, we are not yet deprecat
59
54 protected: 60 protected:
55 virtual ~ResourceDispatcherHost() {} 61 virtual ~ResourceDispatcherHost() {}
56 }; 62 };
57 63
58 } // namespace content 64 } // namespace content
59 65
60 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ 66 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698