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

Side by Side Diff: components/safe_browsing_db/v4_local_database_manager.cc

Issue 2694813005: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « components/quirks/quirks_manager.cc ('k') | components/sessions/core/base_session_service.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 // This file should not be build on Android but is currently getting built. 5 // This file should not be build on Android but is currently getting built.
6 // TODO(vakh): Fix that: http://crbug.com/621647 6 // TODO(vakh): Fix that: http://crbug.com/621647
7 7
8 #include "components/safe_browsing_db/v4_local_database_manager.h" 8 #include "components/safe_browsing_db/v4_local_database_manager.h"
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/metrics/histogram_macros.h" 16 #include "base/metrics/histogram_macros.h"
17 #include "base/threading/sequenced_worker_pool.h"
18 #include "components/safe_browsing_db/v4_feature_list.h" 17 #include "components/safe_browsing_db/v4_feature_list.h"
19 #include "components/safe_browsing_db/v4_protocol_manager_util.h" 18 #include "components/safe_browsing_db/v4_protocol_manager_util.h"
20 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
21 #include "crypto/sha2.h" 20 #include "crypto/sha2.h"
22 21
23 using content::BrowserThread; 22 using content::BrowserThread;
24 using base::TimeTicks; 23 using base::TimeTicks;
25 24
26 namespace safe_browsing { 25 namespace safe_browsing {
27 26
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 db_updated_callback_); 738 db_updated_callback_);
740 } 739 }
741 740
742 bool V4LocalDatabaseManager::AreStoresAvailableNow( 741 bool V4LocalDatabaseManager::AreStoresAvailableNow(
743 const StoresToCheck& stores_to_check) const { 742 const StoresToCheck& stores_to_check) const {
744 return enabled_ && v4_database_ && 743 return enabled_ && v4_database_ &&
745 v4_database_->AreStoresAvailable(stores_to_check); 744 v4_database_->AreStoresAvailable(stores_to_check);
746 } 745 }
747 746
748 } // namespace safe_browsing 747 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/quirks/quirks_manager.cc ('k') | components/sessions/core/base_session_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698