OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_INTENTS_CWS_INTENTS_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_INTENTS_CWS_INTENTS_REGISTRY_H_ |
6 #define CHROME_BROWSER_INTENTS_CWS_INTENTS_REGISTRY_H_ | 6 #define CHROME_BROWSER_INTENTS_CWS_INTENTS_REGISTRY_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.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/profiles/profile_keyed_service.h" | 12 #include "chrome/browser/profiles/profile_keyed_service.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "net/url_request/url_fetcher_delegate.h" | 14 #include "net/url_request/url_fetcher_delegate.h" |
15 | 15 |
| 16 #include <vector> |
| 17 |
16 namespace net { | 18 namespace net { |
17 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
18 } | 20 } |
19 | 21 |
20 class CWSIntentsRegistryForTest; | 22 class CWSIntentsRegistryForTest; |
21 | 23 |
22 // Handles storing and retrieving of web intents in the web database. | 24 // Handles storing and retrieving of web intents in the web database. |
23 // The registry provides filtering logic to retrieve specific types of intents. | 25 // The registry provides filtering logic to retrieve specific types of intents. |
24 class CWSIntentsRegistry : public ProfileKeyedService, | 26 class CWSIntentsRegistry : public ProfileKeyedService, |
25 public net::URLFetcherDelegate { | 27 public net::URLFetcherDelegate { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Map for all in-flight web data requests/intent queries. | 80 // Map for all in-flight web data requests/intent queries. |
79 QueryMap queries_; | 81 QueryMap queries_; |
80 | 82 |
81 // Request context for any CWS requests. | 83 // Request context for any CWS requests. |
82 scoped_refptr<net::URLRequestContextGetter> request_context_; | 84 scoped_refptr<net::URLRequestContextGetter> request_context_; |
83 | 85 |
84 DISALLOW_COPY_AND_ASSIGN(CWSIntentsRegistry); | 86 DISALLOW_COPY_AND_ASSIGN(CWSIntentsRegistry); |
85 }; | 87 }; |
86 | 88 |
87 #endif // CHROME_BROWSER_INTENTS_CWS_INTENTS_REGISTRY_H_ | 89 #endif // CHROME_BROWSER_INTENTS_CWS_INTENTS_REGISTRY_H_ |
OLD | NEW |