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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; | 66 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; |
67 virtual bool AcceptAuthRequest(net::URLRequest* request, | 67 virtual bool AcceptAuthRequest(net::URLRequest* request, |
68 net::AuthChallengeInfo* auth_info) OVERRIDE; | 68 net::AuthChallengeInfo* auth_info) OVERRIDE; |
69 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 69 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
70 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; | 70 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; |
71 virtual void HandleExternalProtocol(const GURL& url, | 71 virtual void HandleExternalProtocol(const GURL& url, |
72 int child_id, | 72 int child_id, |
73 int route_id) OVERRIDE; | 73 int route_id) OVERRIDE; |
74 virtual bool ShouldForceDownloadResource( | 74 virtual bool ShouldForceDownloadResource( |
75 const GURL& url, const std::string& mime_type) OVERRIDE; | 75 const GURL& url, const std::string& mime_type) OVERRIDE; |
76 virtual void OnResponseStarted(net::URLRequest* request, | 76 virtual void OnResponseStarted( |
77 content::ResourceResponse* response, | 77 net::URLRequest* request, |
78 IPC::Sender* sender) OVERRIDE; | 78 content::ResourceContext* resource_context, |
| 79 content::ResourceResponse* response, |
| 80 IPC::Message::Sender* sender) OVERRIDE; |
79 virtual void OnRequestRedirected( | 81 virtual void OnRequestRedirected( |
80 net::URLRequest* request, | 82 net::URLRequest* request, |
| 83 content::ResourceContext* resource_context, |
81 content::ResourceResponse* response) OVERRIDE; | 84 content::ResourceResponse* response) OVERRIDE; |
82 | 85 |
83 // base::FieldTrialList::Observer implementation. | 86 // base::FieldTrialList::Observer implementation. |
84 // This will add the variation ID associated with |trial_name| and | 87 // This will add the variation ID associated with |trial_name| and |
85 // |group_name| to the variation ID cache. | 88 // |group_name| to the variation ID cache. |
86 virtual void OnFieldTrialGroupFinalized( | 89 virtual void OnFieldTrialGroupFinalized( |
87 const std::string& trial_name, | 90 const std::string& trial_name, |
88 const std::string& group_name) OVERRIDE; | 91 const std::string& group_name) OVERRIDE; |
89 | 92 |
90 private: | 93 private: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // This consists of a list of valid IDs, and the actual transmitted header. | 128 // This consists of a list of valid IDs, and the actual transmitted header. |
126 // Note that since this cache is both initialized and accessed from the IO | 129 // Note that since this cache is both initialized and accessed from the IO |
127 // thread, we do not need to synchronize its uses. | 130 // thread, we do not need to synchronize its uses. |
128 std::set<chrome_variations::ID> variation_ids_set_; | 131 std::set<chrome_variations::ID> variation_ids_set_; |
129 std::string variation_ids_header_; | 132 std::string variation_ids_header_; |
130 | 133 |
131 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 134 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
132 }; | 135 }; |
133 | 136 |
134 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 137 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |