Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: chrome/browser/webdata/web_intents_table.h

Issue 8539006: Cleanup: Remove unneeded forward declarations from various chrome/browser subdirectories. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/webdata/keyword_table.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/webdata/web_database_table.h" 13 #include "chrome/browser/webdata/web_database_table.h"
14 #include "webkit/glue/web_intent_service_data.h" 14 #include "webkit/glue/web_intent_service_data.h"
15 15
16 class GURL;
17
18 namespace sql { 16 namespace sql {
19 class Connection; 17 class Connection;
20 class MetaTable; 18 class MetaTable;
21 } 19 }
22 20
23 // This class manages the WebIntents table within the SQLite database passed 21 // This class manages the WebIntents table within the SQLite database passed
24 // to the constructor. It expects the following schema: 22 // to the constructor. It expects the following schema:
25 // 23 //
26 // web_intents 24 // web_intents
27 // service_url URL for service invocation. 25 // service_url URL for service invocation.
28 // action Name of action provided by the service. 26 // action Name of action provided by the service.
29 // type MIME type of data accepted by the service. 27 // type MIME type of data accepted by the service.
30 // 28 //
31 // Intents are uniquely identified by the <service_url,action,type> tuple. 29 // Intents are uniquely identified by the <service_url,action,type> tuple.
32 class WebIntentsTable : public WebDatabaseTable { 30 class WebIntentsTable : public WebDatabaseTable {
33 public: 31 public:
34 WebIntentsTable(sql::Connection* db, sql::MetaTable* meta_table); 32 WebIntentsTable(sql::Connection* db, sql::MetaTable* meta_table);
35 virtual ~WebIntentsTable(); 33 virtual ~WebIntentsTable();
36 34
37 // WebDatabaseTable implementation. 35 // WebDatabaseTable implementation.
38 virtual bool Init(); 36 virtual bool Init();
39 virtual bool IsSyncable(); 37 virtual bool IsSyncable();
40 38
41 // Adds a web intent service to the WebIntents table. 39 // Adds a web intent service to the WebIntents table.
42 // If |service| already exists, replaces it. 40 // If |service| already exists, replaces it.
43 bool SetWebIntentService(const webkit_glue::WebIntentServiceData& service); 41 bool SetWebIntentService(const webkit_glue::WebIntentServiceData& service);
44 42
45 // Retrieve all |services| from WebIntents table that match |action|. 43 // Retrieve all |services| from WebIntents table that match |action|.
(...skipping 12 matching lines...) Expand all
58 56
59 // Removes |service| from WebIntents table - must match all parameters 57 // Removes |service| from WebIntents table - must match all parameters
60 // exactly. 58 // exactly.
61 bool RemoveWebIntentService(const webkit_glue::WebIntentServiceData& service); 59 bool RemoveWebIntentService(const webkit_glue::WebIntentServiceData& service);
62 60
63 private: 61 private:
64 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); 62 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable);
65 }; 63 };
66 64
67 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 65 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/keyword_table.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698