Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_image_model.cc

Issue 670953006: Componentize HostContentSettingsMap and content settings providers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win64 suppress warnings Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 7 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
9 #include "chrome/browser/prerender/prerender_manager.h" 8 #include "chrome/browser/prerender/prerender_manager.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
11 #include "components/content_settings/core/browser/host_content_settings_map.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.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);
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: 358 case CONTENT_SETTINGS_TYPE_MEDIASTREAM:
359 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: 359 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC:
360 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: 360 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA:
361 return new ContentSettingMediaImageModel(content_settings_type); 361 return new ContentSettingMediaImageModel(content_settings_type);
362 case CONTENT_SETTINGS_TYPE_MIDI_SYSEX: 362 case CONTENT_SETTINGS_TYPE_MIDI_SYSEX:
363 return new ContentSettingMIDISysExImageModel(); 363 return new ContentSettingMIDISysExImageModel();
364 default: 364 default:
365 return new ContentSettingBlockedImageModel(content_settings_type); 365 return new ContentSettingBlockedImageModel(content_settings_type);
366 } 366 }
367 } 367 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698