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

Side by Side Diff: components/content_settings/core/browser/local_shared_objects_counter.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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
OLDNEW
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_LOCAL_SHARED_OBJECTS_COUNTER_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER_H_
7 7
8 #include "base/basictypes.h" 8 #include <stddef.h>
9
10 #include "base/macros.h"
9 11
10 class GURL; 12 class GURL;
11 13
12 // An interface to retrieve counts of browser data objects. 14 // An interface to retrieve counts of browser data objects.
13 class LocalSharedObjectsCounter { 15 class LocalSharedObjectsCounter {
14 public: 16 public:
15 LocalSharedObjectsCounter() {} 17 LocalSharedObjectsCounter() {}
16 virtual ~LocalSharedObjectsCounter() {} 18 virtual ~LocalSharedObjectsCounter() {}
17 19
18 virtual size_t GetObjectCount() const = 0; 20 virtual size_t GetObjectCount() const = 0;
19 21
20 virtual size_t GetObjectCountForDomain(const GURL& url) const = 0; 22 virtual size_t GetObjectCountForDomain(const GURL& url) const = 0;
21 23
22 private: 24 private:
23 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsCounter); 25 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsCounter);
24 }; 26 };
25 27
26 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER _H_ 28 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_LOCAL_SHARED_OBJECTS_COUNTER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698