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

Side by Side Diff: chrome/browser/cocoa/content_settings_dialog_controller.mm

Issue 3017011: Make content settings map updates live.
Patch Set: Created 10 years, 5 months 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) 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 #import "chrome/browser/cocoa/content_settings_dialog_controller.h" 5 #import "chrome/browser/cocoa/content_settings_dialog_controller.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/mac_util.h" 10 #include "base/mac_util.h"
11 #include "chrome/browser/browser.h" 11 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_window.h" 12 #include "chrome/browser/browser_window.h"
13 #import "chrome/browser/cocoa/content_exceptions_window_controller.h" 13 #import "chrome/browser/cocoa/content_exceptions_window_controller.h"
14 #import "chrome/browser/cocoa/cookies_window_controller.h" 14 #import "chrome/browser/cocoa/cookies_window_controller.h"
15 #import "chrome/browser/cocoa/geolocation_exceptions_window_controller.h" 15 #import "chrome/browser/cocoa/geolocation_exceptions_window_controller.h"
16 #import "chrome/browser/cocoa/l10n_util.h" 16 #import "chrome/browser/cocoa/l10n_util.h"
17 #import "chrome/browser/geolocation/geolocation_content_settings_map.h" 17 #import "chrome/browser/geolocation/geolocation_content_settings_map.h"
18 #import "chrome/browser/host_content_settings_map.h" 18 #import "chrome/browser/host_content_settings_map.h"
19 #include "chrome/browser/pref_service.h" 19 #include "chrome/browser/pref_service.h"
20 #include "chrome/browser/profile.h" 20 #include "chrome/browser/profile.h"
21 #include "chrome/common/notification_registrar.h"
21 #include "chrome/common/notification_service.h" 22 #include "chrome/common/notification_service.h"
22 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
23 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
24 #include "grit/locale_settings.h" 25 #include "grit/locale_settings.h"
25 26
26 namespace { 27 namespace {
27 28
28 // Index of the "enabled" and "disabled" radio group settings in all tabs except 29 // Index of the "enabled" and "disabled" radio group settings in all tabs except
29 // for the cookies tab. 30 // for the cookies tab.
30 const NSInteger kEnabledIndex = 0; 31 const NSInteger kEnabledIndex = 0;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 case CONTENT_SETTING_ALLOW: return kGeolocationEnabledIndex; 394 case CONTENT_SETTING_ALLOW: return kGeolocationEnabledIndex;
394 case CONTENT_SETTING_ASK: return kGeolocationAskIndex; 395 case CONTENT_SETTING_ASK: return kGeolocationAskIndex;
395 case CONTENT_SETTING_BLOCK: return kGeolocationDisabledIndex; 396 case CONTENT_SETTING_BLOCK: return kGeolocationDisabledIndex;
396 default: 397 default:
397 NOTREACHED(); 398 NOTREACHED();
398 return kGeolocationAskIndex; 399 return kGeolocationAskIndex;
399 } 400 }
400 } 401 }
401 402
402 @end 403 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/content_exceptions_window_controller.mm ('k') | chrome/browser/content_exceptions_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698