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_WEBDATA_WEB_INTENTS_TABLE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ |
6 #define CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ | 6 #define CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/browser/intents/web_intent_service_data.h" | |
14 #include "chrome/browser/webdata/web_database_table.h" | 13 #include "chrome/browser/webdata/web_database_table.h" |
| 14 #include "webkit/glue/web_intent_service_data.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace sql { | 18 namespace sql { |
19 class Connection; | 19 class Connection; |
20 class MetaTable; | 20 class MetaTable; |
21 } | 21 } |
22 | 22 |
23 // This class manages the WebIntents table within the SQLite database passed | 23 // This class manages the WebIntents table within the SQLite database passed |
24 // to the constructor. It expects the following schema: | 24 // to the constructor. It expects the following schema: |
(...skipping 25 matching lines...) Expand all Loading... |
50 bool GetAllWebIntents(std::vector<WebIntentServiceData>* intents); | 50 bool GetAllWebIntents(std::vector<WebIntentServiceData>* intents); |
51 | 51 |
52 // Removes intent from WebIntents table - must match all parameters exactly. | 52 // Removes intent from WebIntents table - must match all parameters exactly. |
53 bool RemoveWebIntent(const WebIntentServiceData& intent); | 53 bool RemoveWebIntent(const WebIntentServiceData& intent); |
54 | 54 |
55 private: | 55 private: |
56 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); | 56 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); |
57 }; | 57 }; |
58 | 58 |
59 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ | 59 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ |
OLD | NEW |