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

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

Issue 7633011: Added WebIntents GetAll support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix review nit Created 9 years, 4 months 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
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
(...skipping 28 matching lines...) Expand all
39 virtual bool IsSyncable(); 39 virtual bool IsSyncable();
40 40
41 // Adds a web intent to the WebIntents table. If intent already exists, 41 // Adds a web intent to the WebIntents table. If intent already exists,
42 // replaces it. 42 // replaces it.
43 bool SetWebIntent(const WebIntentData& intent); 43 bool SetWebIntent(const WebIntentData& intent);
44 44
45 // Retrieve all intents from WebIntents table that match |action|. 45 // Retrieve all intents from WebIntents table that match |action|.
46 bool GetWebIntents(const string16& action, 46 bool GetWebIntents(const string16& action,
47 std::vector<WebIntentData>* intents); 47 std::vector<WebIntentData>* intents);
48 48
49 // Retrieve all intents from WebIntents table.
50 bool GetAllWebIntents(std::vector<WebIntentData>* intents);
51
49 // Removes intent from WebIntents table - must match all parameters exactly. 52 // Removes intent from WebIntents table - must match all parameters exactly.
50 bool RemoveWebIntent(const WebIntentData& intent); 53 bool RemoveWebIntent(const WebIntentData& intent);
51 54
52 private: 55 private:
53 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); 56 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable);
54 }; 57 };
55 58
56 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 59 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service_unittest.cc ('k') | chrome/browser/webdata/web_intents_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698