| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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/ssl/ssl_blocking_page.h" |    5 #include "chrome/browser/ssl/ssl_blocking_page.h" | 
|    6  |    6  | 
|    7 #include "app/l10n_util.h" |    7 #include "app/l10n_util.h" | 
|    8 #include "app/resource_bundle.h" |    8 #include "app/resource_bundle.h" | 
|    9 #include "base/i18n/rtl.h" |    9 #include "base/i18n/rtl.h" | 
|   10 #include "base/metrics/histogram.h" |   10 #include "base/metrics/histogram.h" | 
|   11 #include "base/string_piece.h" |   11 #include "base/string_piece.h" | 
|   12 #include "base/utf_string_conversions.h" |   12 #include "base/utf_string_conversions.h" | 
|   13 #include "base/values.h" |   13 #include "base/values.h" | 
|   14 #include "chrome/browser/cert_store.h" |   14 #include "chrome/browser/cert_store.h" | 
|   15 #include "chrome/browser/dom_operation_notification_details.h" |   15 #include "chrome/browser/dom_operation_notification_details.h" | 
|   16 #include "chrome/browser/prefs/pref_service.h" |   16 #include "chrome/browser/prefs/pref_service.h" | 
|   17 #include "chrome/browser/renderer_host/render_process_host.h" |   17 #include "chrome/browser/renderer_host/render_process_host.h" | 
|   18 #include "chrome/browser/renderer_host/render_view_host.h" |   18 #include "chrome/browser/renderer_host/render_view_host.h" | 
|   19 #include "chrome/browser/ssl/ssl_cert_error_handler.h" |   19 #include "chrome/browser/ssl/ssl_cert_error_handler.h" | 
|   20 #include "chrome/browser/ssl/ssl_error_info.h" |   20 #include "chrome/browser/ssl/ssl_error_info.h" | 
|   21 #include "chrome/browser/tab_contents/navigation_controller.h" |   21 #include "chrome/browser/tab_contents/navigation_controller.h" | 
|   22 #include "chrome/browser/tab_contents/navigation_entry.h" |   22 #include "chrome/browser/tab_contents/navigation_entry.h" | 
|   23 #include "chrome/browser/tab_contents/tab_contents.h" |   23 #include "chrome/browser/tab_contents/tab_contents.h" | 
|   24 #include "chrome/browser/ui/browser.h" |   24 #include "chrome/browser/ui/browser.h" | 
|   25 #include "chrome/common/jstemplate_builder.h" |   25 #include "chrome/common/jstemplate_builder.h" | 
|   26 #include "chrome/common/notification_service.h" |   26 #include "chrome/common/notification_service.h" | 
|   27 #include "chrome/common/pref_names.h" |  | 
|   28 #include "grit/browser_resources.h" |   27 #include "grit/browser_resources.h" | 
|   29 #include "grit/generated_resources.h" |   28 #include "grit/generated_resources.h" | 
|   30  |   29  | 
|   31 namespace { |   30 namespace { | 
|   32  |   31  | 
|   33 enum SSLBlockingPageEvent { |   32 enum SSLBlockingPageEvent { | 
|   34   SHOW, |   33   SHOW, | 
|   35   PROCEED, |   34   PROCEED, | 
|   36   DONT_PROCEED, |   35   DONT_PROCEED, | 
|   37   UNUSED_ENUM, |   36   UNUSED_ENUM, | 
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  164       "moreInfo1", "moreInfo2", "moreInfo3", "moreInfo4", "moreInfo5" |  163       "moreInfo1", "moreInfo2", "moreInfo3", "moreInfo4", "moreInfo5" | 
|  165   }; |  164   }; | 
|  166   int i; |  165   int i; | 
|  167   for (i = 0; i < static_cast<int>(extra_info.size()); i++) { |  166   for (i = 0; i < static_cast<int>(extra_info.size()); i++) { | 
|  168     strings->SetString(keys[i], extra_info[i]); |  167     strings->SetString(keys[i], extra_info[i]); | 
|  169   } |  168   } | 
|  170   for (; i < 5; i++) { |  169   for (; i < 5; i++) { | 
|  171     strings->SetString(keys[i], ""); |  170     strings->SetString(keys[i], ""); | 
|  172   } |  171   } | 
|  173 } |  172 } | 
| OLD | NEW |