| OLD | NEW | 
|---|
| 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 #include "components/offline_pages/core/background/request_queue_store_sql.h" | 5 #include "components/offline_pages/core/background/request_queue_store_sql.h" | 
| 6 | 6 | 
| 7 #include <unordered_set> | 7 #include <unordered_set> | 
| 8 | 8 | 
| 9 #include "base/bind.h" | 9 #include "base/bind.h" | 
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" | 
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" | 
| 12 #include "base/location.h" | 12 #include "base/location.h" | 
| 13 #include "base/logging.h" | 13 #include "base/logging.h" | 
| 14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" | 
|  | 15 #include "base/single_thread_task_runner.h" | 
| 15 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" | 
| 16 #include "components/offline_pages/core/background/save_page_request.h" | 17 #include "components/offline_pages/core/background/save_page_request.h" | 
| 17 #include "sql/connection.h" | 18 #include "sql/connection.h" | 
| 18 #include "sql/statement.h" | 19 #include "sql/statement.h" | 
| 19 #include "sql/transaction.h" | 20 #include "sql/transaction.h" | 
| 20 | 21 | 
| 21 namespace offline_pages { | 22 namespace offline_pages { | 
| 22 | 23 | 
| 23 template class StoreUpdateResult<SavePageRequest>; | 24 template class StoreUpdateResult<SavePageRequest>; | 
| 24 | 25 | 
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 543   db_.reset(); | 544   db_.reset(); | 
| 544   base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, | 545   base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, | 
| 545                                                 base::Bind(callback, success)); | 546                                                 base::Bind(callback, success)); | 
| 546 } | 547 } | 
| 547 | 548 | 
| 548 bool RequestQueueStoreSQL::CheckDb() const { | 549 bool RequestQueueStoreSQL::CheckDb() const { | 
| 549   return db_ && state_ == StoreState::LOADED; | 550   return db_ && state_ == StoreState::LOADED; | 
| 550 } | 551 } | 
| 551 | 552 | 
| 552 }  // namespace offline_pages | 553 }  // namespace offline_pages | 
| OLD | NEW | 
|---|