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/callback.h" | 9 #include "base/callback_forward.h" |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/profiles/profile_keyed_service.h" | 13 #include "chrome/browser/profiles/profile_keyed_service.h" |
14 #include "chrome/browser/webdata/web_data_service.h" | 14 #include "chrome/browser/webdata/web_data_service.h" |
15 #include "webkit/glue/web_intent_service_data.h" | 15 #include "webkit/glue/web_intent_service_data.h" |
16 | 16 |
17 // Handles storing and retrieving of web intents in the web database. | 17 // Handles storing and retrieving of web intents in the web database. |
18 // The registry provides filtering logic to retrieve specific types of intents. | 18 // The registry provides filtering logic to retrieve specific types of intents. |
19 class WebIntentsRegistry | 19 class WebIntentsRegistry |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Shutdown/cleanup is handled by ProfileImpl. We are guaranteed that any | 102 // Shutdown/cleanup is handled by ProfileImpl. We are guaranteed that any |
103 // ProfileKeyedService will be shut down before data on ProfileImpl is | 103 // ProfileKeyedService will be shut down before data on ProfileImpl is |
104 // destroyed (i.e. |extension_service_|), so |extension_service_| is valid | 104 // destroyed (i.e. |extension_service_|), so |extension_service_| is valid |
105 // for the lifetime of the WebIntentsRegistry object. | 105 // for the lifetime of the WebIntentsRegistry object. |
106 ExtensionServiceInterface* extension_service_; | 106 ExtensionServiceInterface* extension_service_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); | 108 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); |
109 }; | 109 }; |
110 | 110 |
111 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ | 111 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ |
OLD | NEW |