| 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/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/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "components/offline_pages/background/save_page_request.h" | 16 #include "components/offline_pages/core/background/save_page_request.h" |
| 17 #include "sql/connection.h" | 17 #include "sql/connection.h" |
| 18 #include "sql/statement.h" | 18 #include "sql/statement.h" |
| 19 #include "sql/transaction.h" | 19 #include "sql/transaction.h" |
| 20 | 20 |
| 21 namespace offline_pages { | 21 namespace offline_pages { |
| 22 | 22 |
| 23 template class StoreUpdateResult<SavePageRequest>; | 23 template class StoreUpdateResult<SavePageRequest>; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 // Complete connection initialization post reset. | 520 // Complete connection initialization post reset. |
| 521 OnOpenConnectionDone(state); | 521 OnOpenConnectionDone(state); |
| 522 callback.Run(state == StoreState::LOADED); | 522 callback.Run(state == StoreState::LOADED); |
| 523 } | 523 } |
| 524 | 524 |
| 525 StoreState RequestQueueStoreSQL::state() const { | 525 StoreState RequestQueueStoreSQL::state() const { |
| 526 return state_; | 526 return state_; |
| 527 } | 527 } |
| 528 | 528 |
| 529 } // namespace offline_pages | 529 } // namespace offline_pages |
| OLD | NEW |