OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // 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_DATA_REQUEST_MANAGER_H__ | 9 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATA_REQUEST_MANAGER_H__ |
10 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_REQUEST_MANAGER_H__ | 10 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_REQUEST_MANAGER_H__ |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 | 13 |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "components/webdata/common/web_database_service.h" |
16 #include "components/webdata/common/web_data_results.h" | 17 #include "components/webdata/common/web_data_results.h" |
17 #include "components/webdata/common/web_data_service_base.h" | 18 #include "components/webdata/common/web_data_service_base.h" |
18 #include "components/webdata/common/web_data_service_consumer.h" | 19 #include "components/webdata/common/web_data_service_consumer.h" |
19 | 20 |
20 class WebDataService; | 21 class WebDataService; |
21 class WebDataServiceConsumer; | 22 class WebDataServiceConsumer; |
22 class WebDataRequestManager; | 23 class WebDataRequestManager; |
23 | 24 |
24 namespace base { | 25 namespace base { |
25 class MessageLoop; | 26 class MessageLoop; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Next handle to be used for requests. Incremented for each use. | 129 // Next handle to be used for requests. Incremented for each use. |
129 WebDataServiceBase::Handle next_request_handle_; | 130 WebDataServiceBase::Handle next_request_handle_; |
130 | 131 |
131 typedef std::map<WebDataServiceBase::Handle, WebDataRequest*> RequestMap; | 132 typedef std::map<WebDataServiceBase::Handle, WebDataRequest*> RequestMap; |
132 RequestMap pending_requests_; | 133 RequestMap pending_requests_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(WebDataRequestManager); | 135 DISALLOW_COPY_AND_ASSIGN(WebDataRequestManager); |
135 }; | 136 }; |
136 | 137 |
137 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_REQUEST_MANAGER_H__ | 138 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_REQUEST_MANAGER_H__ |
OLD | NEW |