| 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 // Chromium settings and storage represent user-selected preferences and | 5 // Chromium settings and storage represent user-selected preferences and |
| 6 // information and MUST not be extracted, overwritten or modified except | 6 // information and MUST not be extracted, overwritten or modified except |
| 7 // through Chromium defined APIs. | 7 // through Chromium defined APIs. |
| 8 | 8 |
| 9 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_SERVICE_H_ | 9 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_SERVICE_H_ |
| 10 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_SERVICE_H_ | 10 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_SERVICE_H_ |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 | 13 |
| 14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/memory/ref_counted_delete_on_message_loop.h" | 19 #include "base/memory/ref_counted_delete_on_message_loop.h" |
| 20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
| 22 #include "base/single_thread_task_runner.h" | 22 #include "base/single_thread_task_runner.h" |
| 23 #include "components/webdata/common/web_data_service_base.h" | 23 #include "components/webdata/common/web_data_service_base.h" |
| 24 #include "components/webdata/common/web_database.h" | 24 #include "components/webdata/common/web_database.h" |
| 25 #include "components/webdata/common/webdata_export.h" | 25 #include "components/webdata/common/webdata_export.h" |
| 26 | 26 |
| 27 class WebDatabaseBackend; | 27 class WebDatabaseBackend; |
| 28 class WebDataRequestManager; | |
| 29 | |
| 30 namespace content { | |
| 31 class BrowserContext; | |
| 32 } | |
| 33 | 28 |
| 34 namespace tracked_objects { | 29 namespace tracked_objects { |
| 35 class Location; | 30 class Location; |
| 36 } | 31 } |
| 37 | 32 |
| 38 class WDTypedResult; | 33 class WDTypedResult; |
| 39 class WebDataServiceConsumer; | 34 class WebDataServiceConsumer; |
| 40 | 35 |
| 41 | 36 |
| 42 //////////////////////////////////////////////////////////////////////////////// | 37 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 140 |
| 146 scoped_refptr<base::SingleThreadTaskRunner> db_thread_; | 141 scoped_refptr<base::SingleThreadTaskRunner> db_thread_; |
| 147 | 142 |
| 148 // All vended weak pointers are invalidated in ShutdownDatabase(). | 143 // All vended weak pointers are invalidated in ShutdownDatabase(). |
| 149 base::WeakPtrFactory<WebDatabaseService> weak_ptr_factory_; | 144 base::WeakPtrFactory<WebDatabaseService> weak_ptr_factory_; |
| 150 | 145 |
| 151 DISALLOW_COPY_AND_ASSIGN(WebDatabaseService); | 146 DISALLOW_COPY_AND_ASSIGN(WebDatabaseService); |
| 152 }; | 147 }; |
| 153 | 148 |
| 154 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_SERVICE_H_ | 149 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_SERVICE_H_ |
| OLD | NEW |