| 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 #include "content/public/browser/resource_dispatcher_host_delegate.h" | 5 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
| 6 | 6 |
| 7 #include "content/public/browser/stream_handle.h" | 7 #include "content/public/browser/stream_handle.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const GURL& url, | 58 const GURL& url, |
| 59 const std::string& mime_type) { | 59 const std::string& mime_type) { |
| 60 return false; | 60 return false; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
| 64 content::ResourceContext* resource_context, | 64 content::ResourceContext* resource_context, |
| 65 const GURL& url, | 65 const GURL& url, |
| 66 const std::string& mime_type, | 66 const std::string& mime_type, |
| 67 GURL* origin, | 67 GURL* origin, |
| 68 std::string* target_id) { | 68 std::string* target_id, |
| 69 std::string* payload, |
| 70 std::string* view_id) { |
| 69 return false; | 71 return false; |
| 70 } | 72 } |
| 71 | 73 |
| 72 void ResourceDispatcherHostDelegate::OnStreamCreated( | 74 void ResourceDispatcherHostDelegate::OnStreamCreated( |
| 73 content::ResourceContext* resource_context, | 75 content::ResourceContext* resource_context, |
| 74 int render_process_id, | 76 int render_process_id, |
| 75 int render_view_id, | 77 int render_view_id, |
| 76 const std::string& target_id, | 78 const std::string& target_id, |
| 79 const std::string& view_id, |
| 77 scoped_ptr<StreamHandle> stream, | 80 scoped_ptr<StreamHandle> stream, |
| 78 int64 expected_content_size) { | 81 int64 expected_content_size) { |
| 79 } | 82 } |
| 80 | 83 |
| 81 void ResourceDispatcherHostDelegate::OnResponseStarted( | 84 void ResourceDispatcherHostDelegate::OnResponseStarted( |
| 82 net::URLRequest* request, | 85 net::URLRequest* request, |
| 83 ResourceContext* resource_context, | 86 ResourceContext* resource_context, |
| 84 ResourceResponse* response, | 87 ResourceResponse* response, |
| 85 IPC::Sender* sender) { | 88 IPC::Sender* sender) { |
| 86 } | 89 } |
| 87 | 90 |
| 88 void ResourceDispatcherHostDelegate::OnRequestRedirected( | 91 void ResourceDispatcherHostDelegate::OnRequestRedirected( |
| 89 const GURL& redirect_url, | 92 const GURL& redirect_url, |
| 90 net::URLRequest* request, | 93 net::URLRequest* request, |
| 91 ResourceContext* resource_context, | 94 ResourceContext* resource_context, |
| 92 ResourceResponse* response) { | 95 ResourceResponse* response) { |
| 93 } | 96 } |
| 94 | 97 |
| 95 void ResourceDispatcherHostDelegate::RequestComplete( | 98 void ResourceDispatcherHostDelegate::RequestComplete( |
| 96 net::URLRequest* url_request) { | 99 net::URLRequest* url_request) { |
| 97 } | 100 } |
| 98 | 101 |
| 99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 102 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
| 100 } | 103 } |
| 101 | 104 |
| 102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 105 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
| 103 } | 106 } |
| 104 | 107 |
| 105 } // namespace content | 108 } // namespace content |
| OLD | NEW |