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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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 | Annotate | Revision Log
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/content_settings/host_content_settings_map.h" 5 #include "chrome/browser/content_settings/host_content_settings_map.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 17 matching lines...) Expand all
28 #include "chrome/common/url_constants.h" 28 #include "chrome/common/url_constants.h"
29 #include "content/browser/user_metrics.h" 29 #include "content/browser/user_metrics.h"
30 #include "content/public/browser/browser_thread.h" 30 #include "content/public/browser/browser_thread.h"
31 #include "content/public/browser/notification_service.h" 31 #include "content/public/browser/notification_service.h"
32 #include "content/public/browser/notification_source.h" 32 #include "content/public/browser/notification_source.h"
33 #include "content/public/common/content_switches.h" 33 #include "content/public/common/content_switches.h"
34 #include "googleurl/src/gurl.h" 34 #include "googleurl/src/gurl.h"
35 #include "net/base/net_errors.h" 35 #include "net/base/net_errors.h"
36 #include "net/base/static_cookie_policy.h" 36 #include "net/base/static_cookie_policy.h"
37 37
38 using content::BrowserThread;
39
38 namespace { 40 namespace {
39 41
40 typedef std::vector<content_settings::Rule> Rules; 42 typedef std::vector<content_settings::Rule> Rules;
41 43
42 typedef std::pair<std::string, std::string> StringPair; 44 typedef std::pair<std::string, std::string> StringPair;
43 45
44 const char* kProviderNames[] = { 46 const char* kProviderNames[] = {
45 "policy", 47 "policy",
46 "extension", 48 "extension",
47 "preference", 49 "preference",
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 bool HostContentSettingsMap::ShouldAllowAllContent( 407 bool HostContentSettingsMap::ShouldAllowAllContent(
406 const GURL& url, 408 const GURL& url,
407 ContentSettingsType content_type) { 409 ContentSettingsType content_type) {
408 if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS) 410 if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS)
409 return false; 411 return false;
410 return url.SchemeIs(chrome::kChromeDevToolsScheme) || 412 return url.SchemeIs(chrome::kChromeDevToolsScheme) ||
411 url.SchemeIs(chrome::kChromeInternalScheme) || 413 url.SchemeIs(chrome::kChromeInternalScheme) ||
412 url.SchemeIs(chrome::kChromeUIScheme) || 414 url.SchemeIs(chrome::kChromeUIScheme) ||
413 url.SchemeIs(chrome::kExtensionScheme); 415 url.SchemeIs(chrome::kExtensionScheme);
414 } 416 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698