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 namespace content { | 7 namespace content { |
8 | 8 |
9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( | 9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( |
10 int child_id, | 10 int child_id, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 return false; | 50 return false; |
51 } | 51 } |
52 | 52 |
53 ResourceDispatcherHostLoginDelegate* | 53 ResourceDispatcherHostLoginDelegate* |
54 ResourceDispatcherHostDelegate::CreateLoginDelegate( | 54 ResourceDispatcherHostDelegate::CreateLoginDelegate( |
55 net::AuthChallengeInfo* auth_info, | 55 net::AuthChallengeInfo* auth_info, |
56 net::URLRequest* request) { | 56 net::URLRequest* request) { |
57 return NULL; | 57 return NULL; |
58 } | 58 } |
59 | 59 |
60 void ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, | 60 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, |
61 int child_id, | 61 int child_id, |
62 int route_id) { | 62 int route_id) { |
| 63 return true; |
63 } | 64 } |
64 | 65 |
65 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 66 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
66 const GURL& url, | 67 const GURL& url, |
67 const std::string& mime_type) { | 68 const std::string& mime_type) { |
68 return false; | 69 return false; |
69 } | 70 } |
70 | 71 |
71 void ResourceDispatcherHostDelegate::OnResponseStarted( | 72 void ResourceDispatcherHostDelegate::OnResponseStarted( |
72 net::URLRequest* request, | 73 net::URLRequest* request, |
73 ResourceContext* resource_context, | 74 ResourceContext* resource_context, |
74 ResourceResponse* response, | 75 ResourceResponse* response, |
75 IPC::Sender* sender) { | 76 IPC::Sender* sender) { |
76 } | 77 } |
77 | 78 |
78 void ResourceDispatcherHostDelegate::OnRequestRedirected( | 79 void ResourceDispatcherHostDelegate::OnRequestRedirected( |
79 const GURL& redirect_url, | 80 const GURL& redirect_url, |
80 net::URLRequest* request, | 81 net::URLRequest* request, |
81 ResourceContext* resource_context, | 82 ResourceContext* resource_context, |
82 ResourceResponse* response) { | 83 ResourceResponse* response) { |
83 } | 84 } |
84 | 85 |
85 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 86 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
86 } | 87 } |
87 | 88 |
88 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 89 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
89 } | 90 } |
90 | 91 |
91 } // namespace content | 92 } // namespace content |
OLD | NEW |