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

Side by Side Diff: components/enhanced_bookmarks/image_store.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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_ENHANCED_BOOKMARKS_IMAGE_STORE_H_ 5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_STORE_H_
6 #define COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_STORE_H_ 6 #define COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_STORE_H_
7 7
8 #include <stdint.h>
9
8 #include <set> 10 #include <set>
9 11
12 #include "base/macros.h"
10 #include "base/sequence_checker.h" 13 #include "base/sequence_checker.h"
11 #include "components/enhanced_bookmarks/image_record.h" 14 #include "components/enhanced_bookmarks/image_record.h"
12 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
13 16
14 class GURL; 17 class GURL;
15 18
16 // The ImageStore keeps an image for each URL. This class is not thread safe, 19 // The ImageStore keeps an image for each URL. This class is not thread safe,
17 // and will check the thread using base::ThreadChecker, except the constructor. 20 // and will check the thread using base::ThreadChecker, except the constructor.
18 class ImageStore { 21 class ImageStore {
19 public: 22 public:
(...skipping 30 matching lines...) Expand all
50 virtual void GetAllPageUrls(std::set<GURL>* urls) = 0; 53 virtual void GetAllPageUrls(std::set<GURL>* urls) = 0;
51 54
52 // Removes all images. 55 // Removes all images.
53 virtual void ClearAll() = 0; 56 virtual void ClearAll() = 0;
54 57
55 // Moves an image from one url to another. 58 // Moves an image from one url to another.
56 void ChangeImageURL(const GURL& from, const GURL& to); 59 void ChangeImageURL(const GURL& from, const GURL& to);
57 60
58 // Returns the saved images storage size in bytes. If the storage doesn't 61 // Returns the saved images storage size in bytes. If the storage doesn't
59 // exist yet or failed to read, returns -1. 62 // exist yet or failed to read, returns -1.
60 virtual int64 GetStoreSizeInBytes() = 0; 63 virtual int64_t GetStoreSizeInBytes() = 0;
61 64
62 protected: 65 protected:
63 base::SequenceChecker sequence_checker_; 66 base::SequenceChecker sequence_checker_;
64 67
65 private: 68 private:
66 DISALLOW_COPY_AND_ASSIGN(ImageStore); 69 DISALLOW_COPY_AND_ASSIGN(ImageStore);
67 }; 70 };
68 71
69 #endif // COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_STORE_H_ 72 #endif // COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_STORE_H_
OLDNEW
« no previous file with comments | « components/enhanced_bookmarks/enhanced_bookmark_features.cc ('k') | components/enhanced_bookmarks/image_store_ios_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698