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

Side by Side Diff: chrome/browser/ui/webui/options2/content_settings_handler.cc

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 years, 4 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) 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/webui/options2/content_settings_handler.h" 5 #include "chrome/browser/ui/webui/options2/content_settings_handler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 return net::CanonicalizeHost(host, &info); 278 return net::CanonicalizeHost(host, &info);
279 } 279 }
280 280
281 bool IsValidHost(const std::string& host) { 281 bool IsValidHost(const std::string& host) {
282 std::string canonicalized_host = CanonicalizeHost(host); 282 std::string canonicalized_host = CanonicalizeHost(host);
283 return !canonicalized_host.empty(); 283 return !canonicalized_host.empty();
284 } 284 }
285 285
286 } // namespace 286 } // namespace
287 287
288 namespace options2 { 288 namespace options {
289 289
290 class ContentSettingsHandler::ExContentSettingsType { 290 class ContentSettingsHandler::ExContentSettingsType {
291 public: 291 public:
292 explicit ExContentSettingsType(int value) : value_(value) { 292 explicit ExContentSettingsType(int value) : value_(value) {
293 DCHECK(value_ < EX_CONTENT_SETTINGS_NUM_TYPES); 293 DCHECK(value_ < EX_CONTENT_SETTINGS_NUM_TYPES);
294 } 294 }
295 explicit ExContentSettingsType(ContentSettingsType type) : value_(type) {} 295 explicit ExContentSettingsType(ContentSettingsType type) : value_(type) {}
296 explicit ExContentSettingsType(ExContentSettingsTypeEnum type) 296 explicit ExContentSettingsType(ExContentSettingsTypeEnum type)
297 : value_(type) {} 297 : value_(type) {}
298 298
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 const ExContentSettingsType& type) { 1331 const ExContentSettingsType& type) {
1332 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) { 1332 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) {
1333 if (type == kExContentSettingsTypeGroupNames[i].type) 1333 if (type == kExContentSettingsTypeGroupNames[i].type)
1334 return kExContentSettingsTypeGroupNames[i].name; 1334 return kExContentSettingsTypeGroupNames[i].name;
1335 } 1335 }
1336 1336
1337 NOTREACHED(); 1337 NOTREACHED();
1338 return std::string(); 1338 return std::string();
1339 } 1339 }
1340 1340
1341 } // namespace options2 1341 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/content_settings_handler.h ('k') | chrome/browser/ui/webui/options2/cookies_view_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698