OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBDATA_COMMON_WEB_DATABASE_BACKEND_H_ | 5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_BACKEND_H_ |
6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_BACKEND_H_ | 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_BACKEND_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/ref_counted_delete_on_message_loop.h" | 15 #include "base/memory/ref_counted_delete_on_message_loop.h" |
16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
18 #include "components/webdata/common/web_database_service.h" | 18 #include "components/webdata/common/web_database_service.h" |
19 #include "components/webdata/common/webdata_export.h" | 19 #include "components/webdata/common/webdata_export.h" |
20 | 20 |
21 class WebDatabase; | 21 class WebDatabase; |
22 class WebDatabaseTable; | 22 class WebDatabaseTable; |
23 class WebDataRequest; | 23 class WebDataRequest; |
24 class WebDataRequestManager; | 24 class WebDataRequestManager; |
25 | 25 |
26 namespace tracked_objects { | |
27 class Location; | |
28 } | |
29 | |
30 // WebDatabaseBackend handles all database tasks posted by | 26 // WebDatabaseBackend handles all database tasks posted by |
31 // WebDatabaseService. It is refcounted to allow asynchronous destruction on the | 27 // WebDatabaseService. It is refcounted to allow asynchronous destruction on the |
32 // DB thread. | 28 // DB thread. |
33 | 29 |
34 class WEBDATA_EXPORT WebDatabaseBackend | 30 class WEBDATA_EXPORT WebDatabaseBackend |
35 : public base::RefCountedDeleteOnMessageLoop<WebDatabaseBackend> { | 31 : public base::RefCountedDeleteOnMessageLoop<WebDatabaseBackend> { |
36 public: | 32 public: |
37 class Delegate { | 33 class Delegate { |
38 public: | 34 public: |
39 virtual ~Delegate() {} | 35 virtual ~Delegate() {} |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // diagnostic information. | 129 // diagnostic information. |
134 std::string diagnostics_; | 130 std::string diagnostics_; |
135 | 131 |
136 // Delegate. See the class definition above for more information. | 132 // Delegate. See the class definition above for more information. |
137 std::unique_ptr<Delegate> delegate_; | 133 std::unique_ptr<Delegate> delegate_; |
138 | 134 |
139 DISALLOW_COPY_AND_ASSIGN(WebDatabaseBackend); | 135 DISALLOW_COPY_AND_ASSIGN(WebDatabaseBackend); |
140 }; | 136 }; |
141 | 137 |
142 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_BACKEND_H_ | 138 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_BACKEND_H_ |
OLD | NEW |