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/browser/android/content_view_client.h" | 5 #include "content/browser/android/content_view_client.h" |
6 | 6 |
7 #include <android/keycodes.h> | 7 #include <android/keycodes.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 */ | 552 */ |
553 case net::ERR_CERT_COMMON_NAME_INVALID: | 553 case net::ERR_CERT_COMMON_NAME_INVALID: |
554 case net::ERR_CERT_DATE_INVALID: | 554 case net::ERR_CERT_DATE_INVALID: |
555 case net::ERR_CERT_AUTHORITY_INVALID: | 555 case net::ERR_CERT_AUTHORITY_INVALID: |
556 case net::ERR_CERT_CONTAINS_ERRORS: | 556 case net::ERR_CERT_CONTAINS_ERRORS: |
557 case net::ERR_CERT_NO_REVOCATION_MECHANISM: | 557 case net::ERR_CERT_NO_REVOCATION_MECHANISM: |
558 case net::ERR_CERT_UNABLE_TO_CHECK_REVOCATION: | 558 case net::ERR_CERT_UNABLE_TO_CHECK_REVOCATION: |
559 case net::ERR_CERT_REVOKED: | 559 case net::ERR_CERT_REVOKED: |
560 case net::ERR_CERT_INVALID: | 560 case net::ERR_CERT_INVALID: |
561 case net::ERR_CERT_WEAK_SIGNATURE_ALGORITHM: | 561 case net::ERR_CERT_WEAK_SIGNATURE_ALGORITHM: |
562 case net::ERR_CERT_NOT_IN_DNS: | |
563 case net::ERR_CERT_NON_UNIQUE_NAME: | 562 case net::ERR_CERT_NON_UNIQUE_NAME: |
564 return CONTENT_VIEW_CLIENT_ERROR_OK; | 563 return CONTENT_VIEW_CLIENT_ERROR_OK; |
565 | 564 |
566 default: | 565 default: |
567 VLOG(1) << "ContentViewClient::ToContentViewClientError: Unknown " | 566 VLOG(1) << "ContentViewClient::ToContentViewClientError: Unknown " |
568 << "chromium error: " | 567 << "chromium error: " |
569 << net_error; | 568 << net_error; |
570 return CONTENT_VIEW_CLIENT_ERROR_UNKNOWN; | 569 return CONTENT_VIEW_CLIENT_ERROR_UNKNOWN; |
571 } | 570 } |
572 } | 571 } |
(...skipping 18 matching lines...) Expand all Loading... |
591 | 590 |
592 bool RegisterContentViewClient(JNIEnv* env) { | 591 bool RegisterContentViewClient(JNIEnv* env) { |
593 if (!HasClass(env, kContentViewClientClassPath)) { | 592 if (!HasClass(env, kContentViewClientClassPath)) { |
594 DLOG(ERROR) << "Unable to find class ContentViewClient!"; | 593 DLOG(ERROR) << "Unable to find class ContentViewClient!"; |
595 return false; | 594 return false; |
596 } | 595 } |
597 return RegisterNativesImpl(env); | 596 return RegisterNativesImpl(env); |
598 } | 597 } |
599 | 598 |
600 } // namespace content | 599 } // namespace content |
OLD | NEW |