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

Side by Side Diff: chrome/browser/content_settings/content_settings_internal_extension_provider.cc

Issue 106433007: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_settings/content_settings_internal_extension_pr ovider.h" 5 #include "chrome/browser/content_settings/content_settings_internal_extension_pr ovider.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/content_settings/content_settings_rule.h" 8 #include "chrome/browser/content_settings/content_settings_rule.h"
9 #include "chrome/browser/extensions/extension_host.h" 9 #include "chrome/browser/extensions/extension_host.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const ResourceIdentifier& resource_identifier, 52 const ResourceIdentifier& resource_identifier,
53 bool incognito) const { 53 bool incognito) const {
54 return value_map_.GetRuleIterator(content_type, resource_identifier, &lock_); 54 return value_map_.GetRuleIterator(content_type, resource_identifier, &lock_);
55 } 55 }
56 56
57 bool InternalExtensionProvider::SetWebsiteSetting( 57 bool InternalExtensionProvider::SetWebsiteSetting(
58 const ContentSettingsPattern& primary_pattern, 58 const ContentSettingsPattern& primary_pattern,
59 const ContentSettingsPattern& secondary_pattern, 59 const ContentSettingsPattern& secondary_pattern,
60 ContentSettingsType content_type, 60 ContentSettingsType content_type,
61 const ResourceIdentifier& resource_identifier, 61 const ResourceIdentifier& resource_identifier,
62 Value* value) { 62 base::Value* value) {
63 return false; 63 return false;
64 } 64 }
65 65
66 void InternalExtensionProvider::ClearAllContentSettingsRules( 66 void InternalExtensionProvider::ClearAllContentSettingsRules(
67 ContentSettingsType content_type) {} 67 ContentSettingsType content_type) {}
68 68
69 void InternalExtensionProvider::Observe(int type, 69 void InternalExtensionProvider::Observe(int type,
70 const content::NotificationSource& source, 70 const content::NotificationSource& source,
71 const content::NotificationDetails& details) { 71 const content::NotificationDetails& details) {
72 switch (type) { 72 switch (type) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 if (setting == CONTENT_SETTING_DEFAULT) { 148 if (setting == CONTENT_SETTING_DEFAULT) {
149 value_map_.DeleteValue(primary_pattern, 149 value_map_.DeleteValue(primary_pattern,
150 secondary_pattern, 150 secondary_pattern,
151 CONTENT_SETTINGS_TYPE_PLUGINS, 151 CONTENT_SETTINGS_TYPE_PLUGINS,
152 resource); 152 resource);
153 } else { 153 } else {
154 value_map_.SetValue(primary_pattern, 154 value_map_.SetValue(primary_pattern,
155 secondary_pattern, 155 secondary_pattern,
156 CONTENT_SETTINGS_TYPE_PLUGINS, 156 CONTENT_SETTINGS_TYPE_PLUGINS,
157 resource, 157 resource,
158 Value::CreateIntegerValue(setting)); 158 base::Value::CreateIntegerValue(setting));
159 } 159 }
160 } 160 }
161 NotifyObservers(primary_pattern, 161 NotifyObservers(primary_pattern,
162 secondary_pattern, 162 secondary_pattern,
163 CONTENT_SETTINGS_TYPE_PLUGINS, 163 CONTENT_SETTINGS_TYPE_PLUGINS,
164 resource); 164 resource);
165 } 165 }
166 166
167 } // namespace content_settings 167 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698