OLD | NEW |
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 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual void OnResponseStarted( | 84 virtual void OnResponseStarted( |
85 net::URLRequest* request, | 85 net::URLRequest* request, |
86 content::ResourceContext* resource_context, | 86 content::ResourceContext* resource_context, |
87 content::ResourceResponse* response, | 87 content::ResourceResponse* response, |
88 IPC::Sender* sender) OVERRIDE; | 88 IPC::Sender* sender) OVERRIDE; |
89 virtual void OnRequestRedirected( | 89 virtual void OnRequestRedirected( |
90 const GURL& redirect_url, | 90 const GURL& redirect_url, |
91 net::URLRequest* request, | 91 net::URLRequest* request, |
92 content::ResourceContext* resource_context, | 92 content::ResourceContext* resource_context, |
93 content::ResourceResponse* response) OVERRIDE; | 93 content::ResourceResponse* response) OVERRIDE; |
| 94 virtual void RequestComplete(net::URLRequest* url_request) OVERRIDE; |
94 | 95 |
95 // Called on the UI thread. Allows switching out the | 96 // Called on the UI thread. Allows switching out the |
96 // ExternalProtocolHandler::Delegate for testing code. | 97 // ExternalProtocolHandler::Delegate for testing code. |
97 static void SetExternalProtocolHandlerDelegateForTesting( | 98 static void SetExternalProtocolHandlerDelegateForTesting( |
98 ExternalProtocolHandler::Delegate* delegate); | 99 ExternalProtocolHandler::Delegate* delegate); |
99 | 100 |
100 private: | 101 private: |
101 void AppendStandardResourceThrottles( | 102 void AppendStandardResourceThrottles( |
102 net::URLRequest* request, | 103 net::URLRequest* request, |
103 content::ResourceContext* resource_context, | 104 content::ResourceContext* resource_context, |
(...skipping 18 matching lines...) Expand all Loading... |
122 | 123 |
123 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 124 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
124 scoped_refptr<SafeBrowsingService> safe_browsing_; | 125 scoped_refptr<SafeBrowsingService> safe_browsing_; |
125 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 126 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
126 prerender::PrerenderTracker* prerender_tracker_; | 127 prerender::PrerenderTracker* prerender_tracker_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 129 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
129 }; | 130 }; |
130 | 131 |
131 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 132 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |