| 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/content_exceptions_table_model.h" | 5 #include "chrome/browser/content_exceptions_table_model.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/table_model_observer.h" | 8 #include "app/table_model_observer.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/host_content_settings_map.h" | 10 #include "chrome/browser/host_content_settings_map.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return UTF8ToWide(entry.first.AsString()); | 69 return UTF8ToWide(entry.first.AsString()); |
| 70 | 70 |
| 71 case IDS_EXCEPTIONS_ACTION_HEADER: | 71 case IDS_EXCEPTIONS_ACTION_HEADER: |
| 72 switch (entry.second) { | 72 switch (entry.second) { |
| 73 case CONTENT_SETTING_ALLOW: | 73 case CONTENT_SETTING_ALLOW: |
| 74 return l10n_util::GetString(IDS_EXCEPTIONS_ALLOW_BUTTON); | 74 return l10n_util::GetString(IDS_EXCEPTIONS_ALLOW_BUTTON); |
| 75 case CONTENT_SETTING_BLOCK: | 75 case CONTENT_SETTING_BLOCK: |
| 76 return l10n_util::GetString(IDS_EXCEPTIONS_BLOCK_BUTTON); | 76 return l10n_util::GetString(IDS_EXCEPTIONS_BLOCK_BUTTON); |
| 77 case CONTENT_SETTING_ASK: | 77 case CONTENT_SETTING_ASK: |
| 78 return l10n_util::GetString(IDS_EXCEPTIONS_ASK_BUTTON); | 78 return l10n_util::GetString(IDS_EXCEPTIONS_ASK_BUTTON); |
| 79 case CONTENT_SETTING_SESSION_ONLY: |
| 80 return l10n_util::GetString(IDS_EXCEPTIONS_SESSION_ONLY_BUTTON); |
| 79 default: | 81 default: |
| 80 NOTREACHED(); | 82 NOTREACHED(); |
| 81 } | 83 } |
| 82 break; | 84 break; |
| 83 | 85 |
| 84 default: | 86 default: |
| 85 NOTREACHED(); | 87 NOTREACHED(); |
| 86 } | 88 } |
| 87 | 89 |
| 88 return std::wstring(); | 90 return std::wstring(); |
| 89 } | 91 } |
| 90 | 92 |
| 91 void ContentExceptionsTableModel::SetObserver(TableModelObserver* observer) { | 93 void ContentExceptionsTableModel::SetObserver(TableModelObserver* observer) { |
| 92 observer_ = observer; | 94 observer_ = observer; |
| 93 } | 95 } |
| OLD | NEW |