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

Side by Side Diff: components/offline_pages/core/offline_page_metadata_store.h

Issue 2819983003: [Offline Pages] Renaming metadata store test file. (Closed)
Patch Set: Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_
6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 }; 37 };
38 38
39 typedef base::Callback<void(bool /* success */)> InitializeCallback; 39 typedef base::Callback<void(bool /* success */)> InitializeCallback;
40 typedef base::Callback<void(bool /* success */)> ResetCallback; 40 typedef base::Callback<void(bool /* success */)> ResetCallback;
41 typedef base::Callback<void(const std::vector<OfflinePageItem>&)> 41 typedef base::Callback<void(const std::vector<OfflinePageItem>&)>
42 LoadCallback; 42 LoadCallback;
43 typedef base::Callback<void(ItemActionStatus)> AddCallback; 43 typedef base::Callback<void(ItemActionStatus)> AddCallback;
44 typedef base::Callback<void(std::unique_ptr<OfflinePagesUpdateResult>)> 44 typedef base::Callback<void(std::unique_ptr<OfflinePagesUpdateResult>)>
45 UpdateCallback; 45 UpdateCallback;
46 46
47 virtual ~OfflinePageMetadataStore(); 47 virtual ~OfflinePageMetadataStore(){};
jianli 2017/04/25 22:55:20 nit: add space before {
48 48
49 // Initializes the store. Should be called before any other methods. 49 // Initializes the store. Should be called before any other methods.
50 virtual void Initialize(const InitializeCallback& callback) = 0; 50 virtual void Initialize(const InitializeCallback& callback) = 0;
51 51
52 // Get all of the offline pages from the store. 52 // Get all of the offline pages from the store.
53 virtual void GetOfflinePages(const LoadCallback& callback) = 0; 53 virtual void GetOfflinePages(const LoadCallback& callback) = 0;
54 54
55 // Asynchronously adds an offline page item metadata to the store. 55 // Asynchronously adds an offline page item metadata to the store.
56 virtual void AddOfflinePage(const OfflinePageItem& offline_page, 56 virtual void AddOfflinePage(const OfflinePageItem& offline_page,
57 const AddCallback& callback) = 0; 57 const AddCallback& callback) = 0;
(...skipping 10 matching lines...) Expand all
68 // Resets the store. 68 // Resets the store.
69 virtual void Reset(const ResetCallback& callback) = 0; 69 virtual void Reset(const ResetCallback& callback) = 0;
70 70
71 // Gets the store state. 71 // Gets the store state.
72 virtual StoreState state() const = 0; 72 virtual StoreState state() const = 0;
73 }; 73 };
74 74
75 } // namespace offline_pages 75 } // namespace offline_pages
76 76
77 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_ 77 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_
OLDNEW
« no previous file with comments | « components/offline_pages/core/BUILD.gn ('k') | components/offline_pages/core/offline_page_metadata_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698