| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 int child_id, | 74 int child_id, |
| 75 int route_id) OVERRIDE; | 75 int route_id) OVERRIDE; |
| 76 virtual bool ShouldForceDownloadResource( | 76 virtual bool ShouldForceDownloadResource( |
| 77 const GURL& url, const std::string& mime_type) OVERRIDE; | 77 const GURL& url, const std::string& mime_type) OVERRIDE; |
| 78 virtual void OnResponseStarted( | 78 virtual void OnResponseStarted( |
| 79 net::URLRequest* request, | 79 net::URLRequest* request, |
| 80 content::ResourceContext* resource_context, | 80 content::ResourceContext* resource_context, |
| 81 content::ResourceResponse* response, | 81 content::ResourceResponse* response, |
| 82 IPC::Sender* sender) OVERRIDE; | 82 IPC::Sender* sender) OVERRIDE; |
| 83 virtual void OnRequestRedirected( | 83 virtual void OnRequestRedirected( |
| 84 const GURL& redirect_url, |
| 84 net::URLRequest* request, | 85 net::URLRequest* request, |
| 85 content::ResourceContext* resource_context, | 86 content::ResourceContext* resource_context, |
| 86 content::ResourceResponse* response) OVERRIDE; | 87 content::ResourceResponse* response) OVERRIDE; |
| 87 | 88 |
| 88 // base::FieldTrialList::Observer implementation. | 89 // base::FieldTrialList::Observer implementation. |
| 89 // This will add the variation ID associated with |trial_name| and | 90 // This will add the variation ID associated with |trial_name| and |
| 90 // |group_name| to the variation ID cache. | 91 // |group_name| to the variation ID cache. |
| 91 virtual void OnFieldTrialGroupFinalized( | 92 virtual void OnFieldTrialGroupFinalized( |
| 92 const std::string& trial_name, | 93 const std::string& trial_name, |
| 93 const std::string& group_name) OVERRIDE; | 94 const std::string& group_name) OVERRIDE; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // This consists of a list of valid IDs, and the actual transmitted header. | 131 // This consists of a list of valid IDs, and the actual transmitted header. |
| 131 // Note that since this cache is both initialized and accessed from the IO | 132 // Note that since this cache is both initialized and accessed from the IO |
| 132 // thread, we do not need to synchronize its uses. | 133 // thread, we do not need to synchronize its uses. |
| 133 std::set<chrome_variations::VariationID> variation_ids_set_; | 134 std::set<chrome_variations::VariationID> variation_ids_set_; |
| 134 std::string variation_ids_header_; | 135 std::string variation_ids_header_; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 137 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 140 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
| OLD | NEW |