OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 22 matching lines...) Expand all Loading... |
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 const content::ResourceContext& resource_context, |
43 const GURL& referrer) OVERRIDE; | 43 const content::Referrer& referrer) OVERRIDE; |
44 virtual ResourceHandler* RequestBeginning( | 44 virtual ResourceHandler* RequestBeginning( |
45 ResourceHandler* handler, | 45 ResourceHandler* handler, |
46 net::URLRequest* request, | 46 net::URLRequest* request, |
47 const content::ResourceContext& resource_context, | 47 const content::ResourceContext& resource_context, |
48 bool is_subresource, | 48 bool is_subresource, |
49 int child_id, | 49 int child_id, |
50 int route_id, | 50 int route_id, |
51 bool is_continuation_of_transferred_request) OVERRIDE; | 51 bool is_continuation_of_transferred_request) OVERRIDE; |
52 virtual ResourceHandler* DownloadStarting( | 52 virtual ResourceHandler* DownloadStarting( |
53 ResourceHandler* handler, | 53 ResourceHandler* handler, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 ResourceDispatcherHost* resource_dispatcher_host_; | 89 ResourceDispatcherHost* resource_dispatcher_host_; |
90 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 90 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
91 scoped_refptr<SafeBrowsingService> safe_browsing_; | 91 scoped_refptr<SafeBrowsingService> safe_browsing_; |
92 prerender::PrerenderTracker* prerender_tracker_; | 92 prerender::PrerenderTracker* prerender_tracker_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 94 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 97 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |