| 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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_CLIENT_H_ | 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_CLIENT_H_ |
| 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_CLIENT_H_ | 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "net/cookies/canonical_cookie.h" |
| 12 | 13 |
| 13 class GURL; | 14 class GURL; |
| 14 class LocalSharedObjectsCounter; | 15 class LocalSharedObjectsCounter; |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 class CookieList; | |
| 18 class CookieOptions; | 18 class CookieOptions; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace content_settings { | 21 namespace content_settings { |
| 22 | 22 |
| 23 // An abstraction of operations that depend on the embedder (e.g. Chrome). | 23 // An abstraction of operations that depend on the embedder (e.g. Chrome). |
| 24 // For mock / testing implementation in tests you can inherit from | 24 // For mock / testing implementation in tests you can inherit from |
| 25 // StubContentSettingsClient instead to avoid the need to stub unneeded pure | 25 // StubContentSettingsClient instead to avoid the need to stub unneeded pure |
| 26 // virtual methods. | 26 // virtual methods. |
| 27 class ContentSettingsClient { | 27 class ContentSettingsClient { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual const LocalSharedObjectsCounter& local_shared_objects( | 64 virtual const LocalSharedObjectsCounter& local_shared_objects( |
| 65 AccessType type) const = 0; | 65 AccessType type) const = 0; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 DISALLOW_COPY_AND_ASSIGN(ContentSettingsClient); | 68 DISALLOW_COPY_AND_ASSIGN(ContentSettingsClient); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace content_settings | 71 } // namespace content_settings |
| 72 | 72 |
| 73 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_CLIENT_H_ | 73 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_CLIENT_H_ |
| OLD | NEW |