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

Side by Side Diff: components/download/internal/download_store.h

Issue 2895953004: Add initial Controller to DownloadService (Closed)
Patch Set: Rebased Created 3 years, 6 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_DOWNLOAD_INTERNAL_DOWNLOAD_STORE_H_ 5 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_STORE_H_
6 #define COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_STORE_H_ 6 #define COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "components/download/internal/store.h" 14 #include "components/download/internal/store.h"
15 #include "components/leveldb_proto/proto_database.h" 15 #include "components/leveldb_proto/proto_database.h"
16 16
17 namespace protodb { 17 namespace protodb {
18 class Entry; 18 class Entry;
19 19 } // namespace protodb
20 } // namespace
21 20
22 namespace download { 21 namespace download {
23 22
24 // DownloadStore provides a layer around a LevelDB proto database that persists 23 // DownloadStore provides a layer around a LevelDB proto database that persists
25 // the download request, scheduling params and metadata to the disk. The data is 24 // the download request, scheduling params and metadata to the disk. The data is
26 // read during initialization and presented to the caller after converting to 25 // read during initialization and presented to the caller after converting to
27 // Entry entries. 26 // Entry entries.
28 class DownloadStore : public Store { 27 class DownloadStore : public Store {
29 public: 28 public:
30 DownloadStore( 29 DownloadStore(
(...skipping 18 matching lines...) Expand all
49 bool is_initialized_; 48 bool is_initialized_;
50 49
51 base::WeakPtrFactory<DownloadStore> weak_factory_; 50 base::WeakPtrFactory<DownloadStore> weak_factory_;
52 51
53 DISALLOW_COPY_AND_ASSIGN(DownloadStore); 52 DISALLOW_COPY_AND_ASSIGN(DownloadStore);
54 }; 53 };
55 54
56 } // namespace download 55 } // namespace download
57 56
58 #endif // COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_STORE_H_ 57 #endif // COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_STORE_H_
OLDNEW
« no previous file with comments | « components/download/internal/download_service_impl_unittest.cc ('k') | components/download/internal/entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698