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

Side by Side Diff: components/history/core/browser/in_memory_history_backend.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // The InMemoryHistoryBackend is a wrapper around the in-memory URL database. 5 // The InMemoryHistoryBackend is a wrapper around the in-memory URL database.
6 // It maintains an in-memory cache of a subset of history that is required for 6 // It maintains an in-memory cache of a subset of history that is required for
7 // low-latency operations, such as in-line autocomplete. 7 // low-latency operations, such as in-line autocomplete.
8 // 8 //
9 // The in-memory cache provides the following guarantees: 9 // The in-memory cache provides the following guarantees:
10 // (1.) It will always contain URLRows that either have a |typed_count| > 0; or 10 // (1.) It will always contain URLRows that either have a |typed_count| > 0; or
(...skipping 21 matching lines...) Expand all
32 namespace base { 32 namespace base {
33 class FilePath; 33 class FilePath;
34 } 34 }
35 35
36 namespace history { 36 namespace history {
37 37
38 class HistoryBackendTestBase; 38 class HistoryBackendTestBase;
39 class HistoryService; 39 class HistoryService;
40 class InMemoryDatabase; 40 class InMemoryDatabase;
41 class InMemoryHistoryBackendTest; 41 class InMemoryHistoryBackendTest;
42 class URLDatabase;
43 class URLRow; 42 class URLRow;
44 43
45 class InMemoryHistoryBackend : public HistoryServiceObserver { 44 class InMemoryHistoryBackend : public HistoryServiceObserver {
46 public: 45 public:
47 InMemoryHistoryBackend(); 46 InMemoryHistoryBackend();
48 ~InMemoryHistoryBackend() override; 47 ~InMemoryHistoryBackend() override;
49 48
50 // Initializes the backend from the history database pointed to by the 49 // Initializes the backend from the history database pointed to by the
51 // full path in |history_filename|. 50 // full path in |history_filename|.
52 bool Init(const base::FilePath& history_filename); 51 bool Init(const base::FilePath& history_filename);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 96
98 ScopedObserver<HistoryService, HistoryServiceObserver> 97 ScopedObserver<HistoryService, HistoryServiceObserver>
99 history_service_observer_; 98 history_service_observer_;
100 99
101 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); 100 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend);
102 }; 101 };
103 102
104 } // namespace history 103 } // namespace history
105 104
106 #endif // COMPONENTS_HISTORY_CORE_BROWSER_IN_MEMORY_HISTORY_BACKEND_H_ 105 #endif // COMPONENTS_HISTORY_CORE_BROWSER_IN_MEMORY_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/history_types.h ('k') | components/history/core/browser/page_usage_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698