| 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( |
| 95 net::URLRequest* url_request, |
| 96 int render_process_id, |
| 97 int render_view_id) OVERRIDE; |
| 94 | 98 |
| 95 // Called on the UI thread. Allows switching out the | 99 // Called on the UI thread. Allows switching out the |
| 96 // ExternalProtocolHandler::Delegate for testing code. | 100 // ExternalProtocolHandler::Delegate for testing code. |
| 97 static void SetExternalProtocolHandlerDelegateForTesting( | 101 static void SetExternalProtocolHandlerDelegateForTesting( |
| 98 ExternalProtocolHandler::Delegate* delegate); | 102 ExternalProtocolHandler::Delegate* delegate); |
| 99 | 103 |
| 100 private: | 104 private: |
| 101 void AppendStandardResourceThrottles( | 105 void AppendStandardResourceThrottles( |
| 102 net::URLRequest* request, | 106 net::URLRequest* request, |
| 103 content::ResourceContext* resource_context, | 107 content::ResourceContext* resource_context, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 122 | 126 |
| 123 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 127 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
| 124 scoped_refptr<SafeBrowsingService> safe_browsing_; | 128 scoped_refptr<SafeBrowsingService> safe_browsing_; |
| 125 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 129 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
| 126 prerender::PrerenderTracker* prerender_tracker_; | 130 prerender::PrerenderTracker* prerender_tracker_; |
| 127 | 131 |
| 128 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 132 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
| 129 }; | 133 }; |
| 130 | 134 |
| 131 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 135 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
| OLD | NEW |