| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_CLIENT_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 10 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
| 10 #include "chrome/browser/content_settings/local_shared_objects_container.h" | 11 #include "chrome/browser/content_settings/local_shared_objects_container.h" |
| 11 #include "components/content_settings/core/browser/content_settings_client.h" | 12 #include "components/content_settings/core/browser/content_settings_client.h" |
| 12 #include "content/public/browser/web_contents_user_data.h" | 13 #include "content/public/browser/web_contents_user_data.h" |
| 13 | 14 |
| 14 // Chrome-specific implementation of the ContentSettingsClient interface. | 15 // Chrome-specific implementation of the ContentSettingsClient interface. |
| 15 class ChromeContentSettingsClient | 16 class ChromeContentSettingsClient |
| 16 : public content_settings::ContentSettingsClient, | 17 : public content_settings::ContentSettingsClient, |
| 17 public content::WebContentsUserData<ChromeContentSettingsClient> { | 18 public content::WebContentsUserData<ChromeContentSettingsClient> { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 explicit ChromeContentSettingsClient(content::WebContents* contents); | 53 explicit ChromeContentSettingsClient(content::WebContents* contents); |
| 53 | 54 |
| 54 // Stores the blocked/allowed site data. | 55 // Stores the blocked/allowed site data. |
| 55 LocalSharedObjectsContainer allowed_local_shared_objects_; | 56 LocalSharedObjectsContainer allowed_local_shared_objects_; |
| 56 LocalSharedObjectsContainer blocked_local_shared_objects_; | 57 LocalSharedObjectsContainer blocked_local_shared_objects_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(ChromeContentSettingsClient); | 59 DISALLOW_COPY_AND_ASSIGN(ChromeContentSettingsClient); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_CLIENT_H_ | 62 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_CLIENT_H_ |
| OLD | NEW |