| OLD | NEW | 
|    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 // Maps hostnames to custom content settings.  Written on the UI thread and read |    5 // Maps hostnames to custom content settings.  Written on the UI thread and read | 
|    6 // on any thread.  One instance per profile. |    6 // on any thread.  One instance per profile. | 
|    7  |    7  | 
|    8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ |    8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ | 
|    9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ |    9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ | 
|   10  |   10  | 
|   11 #include <map> |   11 #include <map> | 
|   12 #include <string> |   12 #include <string> | 
|   13 #include <vector> |   13 #include <vector> | 
|   14  |   14  | 
|   15 #include "base/basictypes.h" |   15 #include "base/basictypes.h" | 
|   16 #include "base/memory/ref_counted.h" |   16 #include "base/memory/ref_counted.h" | 
|   17 #include "base/synchronization/lock.h" |   17 #include "base/synchronization/lock.h" | 
|   18 #include "base/tuple.h" |   18 #include "base/tuple.h" | 
 |   19 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 
|   19 #include "chrome/browser/content_settings/content_settings_observer.h" |   20 #include "chrome/browser/content_settings/content_settings_observer.h" | 
|   20 #include "chrome/browser/prefs/pref_change_registrar.h" |  | 
|   21 #include "chrome/common/content_settings.h" |   21 #include "chrome/common/content_settings.h" | 
 |   22 #include "chrome/common/content_settings_pattern.h" | 
|   22 #include "chrome/common/content_settings_types.h" |   23 #include "chrome/common/content_settings_types.h" | 
|   23 #include "chrome/common/content_settings_pattern.h" |  | 
|   24  |   24  | 
|   25 namespace base { |   25 namespace base { | 
|   26 class Value; |   26 class Value; | 
|   27 }  // namespace base |   27 }  // namespace base | 
|   28  |   28  | 
|   29 namespace content_settings { |   29 namespace content_settings { | 
|   30 class ProviderInterface; |   30 class ProviderInterface; | 
|   31 }  // namespace content_settings |   31 }  // namespace content_settings | 
|   32  |   32  | 
|   33 class ExtensionService; |   33 class ExtensionService; | 
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  227   // Content setting providers. |  227   // Content setting providers. | 
|  228   ProviderMap content_settings_providers_; |  228   ProviderMap content_settings_providers_; | 
|  229  |  229  | 
|  230   // Used around accesses to the following objects to guarantee thread safety. |  230   // Used around accesses to the following objects to guarantee thread safety. | 
|  231   mutable base::Lock lock_; |  231   mutable base::Lock lock_; | 
|  232  |  232  | 
|  233   DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); |  233   DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); | 
|  234 }; |  234 }; | 
|  235  |  235  | 
|  236 #endif  // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ |  236 #endif  // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ | 
| OLD | NEW |