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 "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" | 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/prerender/prerender_tracker.h" | 22 #include "chrome/browser/prerender/prerender_tracker.h" |
23 #include "chrome/browser/profiles/profile_io_data.h" | 23 #include "chrome/browser/profiles/profile_io_data.h" |
24 #include "chrome/browser/renderer_host/chrome_url_request_user_data.h" | 24 #include "chrome/browser/renderer_host/chrome_url_request_user_data.h" |
25 #include "chrome/browser/renderer_host/safe_browsing_resource_throttle.h" | 25 #include "chrome/browser/renderer_host/safe_browsing_resource_throttle.h" |
26 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 26 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
27 #include "chrome/browser/ui/auto_login_prompter.h" | 27 #include "chrome/browser/ui/auto_login_prompter.h" |
28 #include "chrome/browser/ui/login/login_prompt.h" | 28 #include "chrome/browser/ui/login/login_prompt.h" |
29 #include "chrome/browser/ui/sync/one_click_signin_helper.h" | 29 #include "chrome/browser/ui/sync/one_click_signin_helper.h" |
30 #include "chrome/common/chrome_notification_types.h" | 30 #include "chrome/common/chrome_notification_types.h" |
31 #include "chrome/common/extensions/user_script.h" | 31 #include "chrome/common/extensions/user_script.h" |
32 #include "chrome/common/metrics/variations_util.h" | 32 #include "chrome/common/metrics/variations/variations_util.h" |
33 #include "chrome/common/metrics/proto/chrome_experiments.pb.h" | 33 #include "chrome/common/metrics/proto/chrome_experiments.pb.h" |
34 #include "chrome/common/render_messages.h" | 34 #include "chrome/common/render_messages.h" |
35 #include "content/public/browser/browser_thread.h" | 35 #include "content/public/browser/browser_thread.h" |
36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
37 #include "content/public/browser/render_view_host.h" | 37 #include "content/public/browser/render_view_host.h" |
38 #include "content/public/browser/resource_context.h" | 38 #include "content/public/browser/resource_context.h" |
39 #include "content/public/browser/resource_dispatcher_host.h" | 39 #include "content/public/browser/resource_dispatcher_host.h" |
40 #include "content/public/browser/resource_request_info.h" | 40 #include "content/public/browser/resource_request_info.h" |
41 #include "net/base/load_flags.h" | 41 #include "net/base/load_flags.h" |
42 #include "net/base/ssl_config_service.h" | 42 #include "net/base/ssl_config_service.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 if (base::Base64Encode(serialized, &hashed)) { | 424 if (base::Base64Encode(serialized, &hashed)) { |
425 // If successful, swap the header value with the new one. | 425 // If successful, swap the header value with the new one. |
426 // Note that the list of IDs and the header could be temporarily out of sync | 426 // Note that the list of IDs and the header could be temporarily out of sync |
427 // if IDs are added as we are recreating the header, but we're OK with those | 427 // if IDs are added as we are recreating the header, but we're OK with those |
428 // descrepancies. | 428 // descrepancies. |
429 variation_ids_header_ = hashed; | 429 variation_ids_header_ = hashed; |
430 } else { | 430 } else { |
431 DVLOG(1) << "Failed to base64 encode Variation IDs value: " << serialized; | 431 DVLOG(1) << "Failed to base64 encode Variation IDs value: " << serialized; |
432 } | 432 } |
433 } | 433 } |
OLD | NEW |