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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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
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 CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 21 matching lines...) Expand all
32 prerender::PrerenderTracker* prerender_tracker); 32 prerender::PrerenderTracker* prerender_tracker);
33 virtual ~ChromeResourceDispatcherHostDelegate(); 33 virtual ~ChromeResourceDispatcherHostDelegate();
34 34
35 // ResourceDispatcherHostDelegate implementation. 35 // ResourceDispatcherHostDelegate implementation.
36 virtual bool ShouldBeginRequest( 36 virtual bool ShouldBeginRequest(
37 int child_id, 37 int child_id,
38 int route_id, 38 int route_id,
39 const std::string& method, 39 const std::string& method,
40 const GURL& url, 40 const GURL& url,
41 ResourceType::Type resource_type, 41 ResourceType::Type resource_type,
42 const content::ResourceContext& resource_context, 42 content::ResourceContext* resource_context,
43 const content::Referrer& referrer) OVERRIDE; 43 const content::Referrer& referrer) OVERRIDE;
44 virtual void RequestBeginning( 44 virtual void RequestBeginning(
45 net::URLRequest* request, 45 net::URLRequest* request,
46 const content::ResourceContext& resource_context, 46 content::ResourceContext* resource_context,
47 ResourceType::Type resource_type, 47 ResourceType::Type resource_type,
48 int child_id, 48 int child_id,
49 int route_id, 49 int route_id,
50 bool is_continuation_of_transferred_request, 50 bool is_continuation_of_transferred_request,
51 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; 51 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
52 virtual void DownloadStarting( 52 virtual void DownloadStarting(
53 net::URLRequest* request, 53 net::URLRequest* request,
54 const content::ResourceContext& resource_context, 54 content::ResourceContext* resource_context,
55 int child_id, 55 int child_id,
56 int route_id, 56 int route_id,
57 int request_id, 57 int request_id,
58 bool is_new_request, 58 bool is_new_request,
59 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; 59 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
60 virtual bool ShouldDeferStart( 60 virtual bool ShouldDeferStart(
61 net::URLRequest* request, 61 net::URLRequest* request,
62 const content::ResourceContext& resource_context) OVERRIDE; 62 content::ResourceContext* resource_context) OVERRIDE;
63 virtual bool AcceptSSLClientCertificateRequest( 63 virtual bool AcceptSSLClientCertificateRequest(
64 net::URLRequest* request, 64 net::URLRequest* request,
65 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; 65 net::SSLCertRequestInfo* cert_request_info) OVERRIDE;
66 virtual bool AcceptAuthRequest(net::URLRequest* request, 66 virtual bool AcceptAuthRequest(net::URLRequest* request,
67 net::AuthChallengeInfo* auth_info) OVERRIDE; 67 net::AuthChallengeInfo* auth_info) OVERRIDE;
68 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 68 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
69 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; 69 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE;
70 virtual void HandleExternalProtocol(const GURL& url, 70 virtual void HandleExternalProtocol(const GURL& url,
71 int child_id, 71 int child_id,
72 int route_id) OVERRIDE; 72 int route_id) OVERRIDE;
(...skipping 14 matching lines...) Expand all
87 87
88 ResourceDispatcherHost* resource_dispatcher_host_; 88 ResourceDispatcherHost* resource_dispatcher_host_;
89 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; 89 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
90 scoped_refptr<SafeBrowsingService> safe_browsing_; 90 scoped_refptr<SafeBrowsingService> safe_browsing_;
91 prerender::PrerenderTracker* prerender_tracker_; 91 prerender::PrerenderTracker* prerender_tracker_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 93 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
94 }; 94 };
95 95
96 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 96 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698