| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 int child_id, | 67 int child_id, |
| 68 int route_id, | 68 int route_id, |
| 69 bool initiated_by_user_gesture) OVERRIDE; | 69 bool initiated_by_user_gesture) OVERRIDE; |
| 70 virtual bool ShouldForceDownloadResource( | 70 virtual bool ShouldForceDownloadResource( |
| 71 const GURL& url, const std::string& mime_type) OVERRIDE; | 71 const GURL& url, const std::string& mime_type) OVERRIDE; |
| 72 virtual bool ShouldInterceptResourceAsStream( | 72 virtual bool ShouldInterceptResourceAsStream( |
| 73 content::ResourceContext* resource_context, | 73 content::ResourceContext* resource_context, |
| 74 const GURL& url, | 74 const GURL& url, |
| 75 const std::string& mime_type, | 75 const std::string& mime_type, |
| 76 GURL* origin, | 76 GURL* origin, |
| 77 std::string* target_id) OVERRIDE; | 77 std::string* target_id, |
| 78 std::string* payload, |
| 79 std::string* view_id) OVERRIDE; |
| 78 virtual void OnStreamCreated( | 80 virtual void OnStreamCreated( |
| 79 content::ResourceContext* resource_context, | 81 content::ResourceContext* resource_context, |
| 80 int render_process_id, | 82 int render_process_id, |
| 81 int render_view_id, | 83 int render_view_id, |
| 82 const std::string& target_id, | 84 const std::string& target_id, |
| 85 const std::string& view_id, |
| 83 scoped_ptr<content::StreamHandle> stream, | 86 scoped_ptr<content::StreamHandle> stream, |
| 84 int64 expected_content_size) OVERRIDE; | 87 int64 expected_content_size) OVERRIDE; |
| 85 virtual void OnResponseStarted( | 88 virtual void OnResponseStarted( |
| 86 net::URLRequest* request, | 89 net::URLRequest* request, |
| 87 content::ResourceContext* resource_context, | 90 content::ResourceContext* resource_context, |
| 88 content::ResourceResponse* response, | 91 content::ResourceResponse* response, |
| 89 IPC::Sender* sender) OVERRIDE; | 92 IPC::Sender* sender) OVERRIDE; |
| 90 virtual void OnRequestRedirected( | 93 virtual void OnRequestRedirected( |
| 91 const GURL& redirect_url, | 94 const GURL& redirect_url, |
| 92 net::URLRequest* request, | 95 net::URLRequest* request, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 116 | 119 |
| 117 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 120 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
| 118 scoped_refptr<SafeBrowsingService> safe_browsing_; | 121 scoped_refptr<SafeBrowsingService> safe_browsing_; |
| 119 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 122 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
| 120 prerender::PrerenderTracker* prerender_tracker_; | 123 prerender::PrerenderTracker* prerender_tracker_; |
| 121 | 124 |
| 122 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 125 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
| 123 }; | 126 }; |
| 124 | 127 |
| 125 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 128 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
| OLD | NEW |