OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ |
6 #define CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ | 6 #define CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "chrome/browser/intents/web_intent_service_data.h" | |
12 #include "chrome/browser/profiles/profile_keyed_service.h" | 11 #include "chrome/browser/profiles/profile_keyed_service.h" |
13 #include "chrome/browser/webdata/web_data_service.h" | 12 #include "chrome/browser/webdata/web_data_service.h" |
| 13 #include "webkit/glue/web_intent_service_data.h" |
14 | 14 |
15 // Handles storing and retrieving of web intents in the web database. | 15 // Handles storing and retrieving of web intents in the web database. |
16 // The registry provides filtering logic to retrieve specific types of intents. | 16 // The registry provides filtering logic to retrieve specific types of intents. |
17 class WebIntentsRegistry | 17 class WebIntentsRegistry |
18 : public WebDataServiceConsumer, | 18 : public WebDataServiceConsumer, |
19 public ProfileKeyedService { | 19 public ProfileKeyedService { |
20 public: | 20 public: |
21 // Unique identifier for intent queries. | 21 // Unique identifier for intent queries. |
22 typedef int QueryID; | 22 typedef int QueryID; |
23 | 23 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Unique identifier for next intent query. | 77 // Unique identifier for next intent query. |
78 QueryID next_query_id_; | 78 QueryID next_query_id_; |
79 | 79 |
80 // Local reference to Web Data Service. | 80 // Local reference to Web Data Service. |
81 scoped_refptr<WebDataService> wds_; | 81 scoped_refptr<WebDataService> wds_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); | 83 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); |
84 }; | 84 }; |
85 | 85 |
86 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ | 86 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ |
OLD | NEW |