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

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

Issue 10824212: Add support for unregistering web intents default by service_url. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rename to use "ServiceDefaults" as the method subject. Created 8 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
OLDNEW
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_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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool GetAllDefaultServices( 98 bool GetAllDefaultServices(
99 std::vector<DefaultWebIntentService>* default_services); 99 std::vector<DefaultWebIntentService>* default_services);
100 100
101 // Set a default service to be used on given intent invocations. 101 // Set a default service to be used on given intent invocations.
102 bool SetDefaultService(const DefaultWebIntentService& default_service); 102 bool SetDefaultService(const DefaultWebIntentService& default_service);
103 103
104 // Removes a default |service| from table - must match the action, type, 104 // Removes a default |service| from table - must match the action, type,
105 // and url_pattern parameters exactly. 105 // and url_pattern parameters exactly.
106 bool RemoveDefaultService(const DefaultWebIntentService& default_service); 106 bool RemoveDefaultService(const DefaultWebIntentService& default_service);
107 107
108 // Removes all default services associated with |service_url|.
109 bool RemoveServiceDefaults(const GURL& service_url);
110
108 private: 111 private:
109 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); 112 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable);
110 }; 113 };
111 114
112 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 115 #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