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

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

Issue 10381097: Move content settings extension API to content_settings dir. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/extension_content_settings_helpers.h" 5 #include "chrome/browser/content_settings/extension_content_settings_helpers.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/common/extensions/url_pattern.h" 10 #include "chrome/common/extensions/url_pattern.h"
11 #include "content/public/common/url_constants.h" 11 #include "content/public/common/url_constants.h"
12 12
13 namespace { 13 namespace {
14 14
15 const char kNoPathWildcardsError[] = 15 const char kNoPathWildcardsError[] =
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return false; 138 return false;
139 } 139 }
140 140
141 const char* ContentSettingToString(ContentSetting setting) { 141 const char* ContentSettingToString(ContentSetting setting) {
142 size_t index = static_cast<size_t>(setting); 142 size_t index = static_cast<size_t>(setting);
143 DCHECK_LT(index, arraysize(kContentSettingNames)); 143 DCHECK_LT(index, arraysize(kContentSettingNames));
144 return kContentSettingNames[index]; 144 return kContentSettingNames[index];
145 } 145 }
146 146
147 } // namespace extension_content_settings_helpers 147 } // namespace extension_content_settings_helpers
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698