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

Side by Side Diff: components/previews/core/previews_opt_out_store.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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
« no previous file with comments | « components/prefs/pref_filter.h ('k') | components/proximity_auth/bluetooth_connection_finder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_ 5 #ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_
6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_ 6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <unordered_map> 12 #include <unordered_map>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "components/previews/core/previews_black_list_item.h" 17 #include "components/previews/core/previews_black_list_item.h"
18 #include "components/previews/core/previews_experiments.h" 18 #include "components/previews/core/previews_experiments.h"
19 19
20 class GURL;
21
22 namespace previews { 20 namespace previews {
23 21
24 typedef std::unordered_map<std::string, std::unique_ptr<PreviewsBlackListItem>> 22 typedef std::unordered_map<std::string, std::unique_ptr<PreviewsBlackListItem>>
25 BlackListItemMap; 23 BlackListItemMap;
26 24
27 typedef base::Callback<void(std::unique_ptr<BlackListItemMap>, 25 typedef base::Callback<void(std::unique_ptr<BlackListItemMap>,
28 std::unique_ptr<PreviewsBlackListItem>)> 26 std::unique_ptr<PreviewsBlackListItem>)>
29 LoadBlackListCallback; 27 LoadBlackListCallback;
30 28
31 // PreviewsOptOutStore keeps opt out information for the previews. 29 // PreviewsOptOutStore keeps opt out information for the previews.
(...skipping 16 matching lines...) Expand all
48 // host from the store. And runs |callback| once loading is finished. 46 // host from the store. And runs |callback| once loading is finished.
49 virtual void LoadBlackList(LoadBlackListCallback callback) = 0; 47 virtual void LoadBlackList(LoadBlackListCallback callback) = 0;
50 48
51 // Deletes all history in the store between |begin_time| and |end_time|. 49 // Deletes all history in the store between |begin_time| and |end_time|.
52 virtual void ClearBlackList(base::Time begin_time, base::Time end_time) = 0; 50 virtual void ClearBlackList(base::Time begin_time, base::Time end_time) = 0;
53 }; 51 };
54 52
55 } // namespace previews 53 } // namespace previews
56 54
57 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_ 55 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_
OLDNEW
« no previous file with comments | « components/prefs/pref_filter.h ('k') | components/proximity_auth/bluetooth_connection_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698