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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER_H_
8 #include "base/basictypes.h"
12 // An interface to retrieve counts of browser data objects.
13 class LocalSharedObjectsCounter {
15 LocalSharedObjectsCounter() {}
16 virtual ~LocalSharedObjectsCounter() {}
18 virtual size_t GetObjectCount() const = 0;
20 virtual size_t GetObjectCountForDomain(const GURL& url) const = 0;
23 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsCounter);
26 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER_H_