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/ui/content_settings/content_setting_image_model.h" | 5 #include "chrome/browser/ui/content_settings/content_setting_image_model.h" |
6 | 6 |
7 #include "chrome/browser/content_settings/host_content_settings_map.h" | 7 #include "chrome/browser/content_settings/host_content_settings_map.h" |
8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
9 #include "chrome/browser/prerender/prerender_manager.h" | 9 #include "chrome/browser/prerender/prerender_manager.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/grit/generated_resources.h" |
11 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
12 #include "grit/generated_resources.h" | |
13 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources.h" |
14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
15 | 15 |
16 using content::WebContents; | 16 using content::WebContents; |
17 | 17 |
18 class ContentSettingBlockedImageModel : public ContentSettingImageModel { | 18 class ContentSettingBlockedImageModel : public ContentSettingImageModel { |
19 public: | 19 public: |
20 explicit ContentSettingBlockedImageModel( | 20 explicit ContentSettingBlockedImageModel( |
21 ContentSettingsType content_settings_type); | 21 ContentSettingsType content_settings_type); |
22 | 22 |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: | 366 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: |
367 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: | 367 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: |
368 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: | 368 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: |
369 return new ContentSettingMediaImageModel(content_settings_type); | 369 return new ContentSettingMediaImageModel(content_settings_type); |
370 case CONTENT_SETTINGS_TYPE_MIDI_SYSEX: | 370 case CONTENT_SETTINGS_TYPE_MIDI_SYSEX: |
371 return new ContentSettingMIDISysExImageModel(); | 371 return new ContentSettingMIDISysExImageModel(); |
372 default: | 372 default: |
373 return new ContentSettingBlockedImageModel(content_settings_type); | 373 return new ContentSettingBlockedImageModel(content_settings_type); |
374 } | 374 } |
375 } | 375 } |
OLD | NEW |