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

Side by Side Diff: components/offline_pages/core/background/request_queue_store_sql.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase 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
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 #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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 db_.reset(); 508 db_.reset();
509 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, 509 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
510 base::Bind(callback, success)); 510 base::Bind(callback, success));
511 } 511 }
512 512
513 bool RequestQueueStoreSQL::CheckDb() const { 513 bool RequestQueueStoreSQL::CheckDb() const {
514 return db_ && state_ == StoreState::LOADED; 514 return db_ && state_ == StoreState::LOADED;
515 } 515 }
516 516
517 } // namespace offline_pages 517 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698