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

Side by Side Diff: content/browser/loader/resource_loader_delegate.h

Issue 2088763004: Remove resource_context.h include from resource_loader.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 namespace net { 10 namespace net {
11 class AuthChallengeInfo; 11 class AuthChallengeInfo;
12 class ClientCertStore;
12 } 13 }
13 14
14 namespace content { 15 namespace content {
15 class ResourceDispatcherHostLoginDelegate; 16 class ResourceDispatcherHostLoginDelegate;
16 class ResourceLoader; 17 class ResourceLoader;
17 18
18 class CONTENT_EXPORT ResourceLoaderDelegate { 19 class CONTENT_EXPORT ResourceLoaderDelegate {
19 public: 20 public:
20 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 21 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
21 ResourceLoader* loader, 22 ResourceLoader* loader,
22 net::AuthChallengeInfo* auth_info) = 0; 23 net::AuthChallengeInfo* auth_info) = 0;
23 24
24 virtual bool HandleExternalProtocol(ResourceLoader* loader, 25 virtual bool HandleExternalProtocol(ResourceLoader* loader,
25 const GURL& url) = 0; 26 const GURL& url) = 0;
26 27
27 virtual void DidStartRequest(ResourceLoader* loader) = 0; 28 virtual void DidStartRequest(ResourceLoader* loader) = 0;
28 virtual void DidReceiveRedirect(ResourceLoader* loader, 29 virtual void DidReceiveRedirect(ResourceLoader* loader,
29 const GURL& new_url) = 0; 30 const GURL& new_url) = 0;
30 virtual void DidReceiveResponse(ResourceLoader* loader) = 0; 31 virtual void DidReceiveResponse(ResourceLoader* loader) = 0;
31 32
32 // This method informs the delegate that the loader is done, and the loader 33 // This method informs the delegate that the loader is done, and the loader
33 // expects to be destroyed as a side-effect of this call. 34 // expects to be destroyed as a side-effect of this call.
34 virtual void DidFinishLoading(ResourceLoader* loader) = 0; 35 virtual void DidFinishLoading(ResourceLoader* loader) = 0;
35 36
37 // Get platform ClientCertStore. May return nullptr.
38 virtual std::unique_ptr<net::ClientCertStore> CreateClientCertStore(
39 ResourceLoader* loader) = 0;
40
36 protected: 41 protected:
37 virtual ~ResourceLoaderDelegate() {} 42 virtual ~ResourceLoaderDelegate() {}
38 }; 43 };
39 44
40 } // namespace content 45 } // namespace content
41 46
42 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ 47 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/loader/resource_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698