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

Side by Side Diff: chrome/browser/intents/web_intents_registry.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
« no previous file with comments | « no previous file | chrome/browser/intents/web_intents_registry.cc » ('j') | 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) 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_WEB_INTENTS_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_
6 #define CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ 6 #define CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Record the given default service entry. 89 // Record the given default service entry.
90 virtual void RegisterDefaultIntentService( 90 virtual void RegisterDefaultIntentService(
91 const DefaultWebIntentService& default_service); 91 const DefaultWebIntentService& default_service);
92 92
93 // Delete the given default service entry. Deletes entries matching 93 // Delete the given default service entry. Deletes entries matching
94 // the |action|, |type|, and |url_pattern| of |default_service|. 94 // the |action|, |type|, and |url_pattern| of |default_service|.
95 virtual void UnregisterDefaultIntentService( 95 virtual void UnregisterDefaultIntentService(
96 const DefaultWebIntentService& default_service); 96 const DefaultWebIntentService& default_service);
97 97
98 // Delete all default service entries associated with |service_url|.
99 virtual void UnregisterServiceDefaults(const GURL& service_url);
100
98 // Requests the best default intent service for the given invocation 101 // Requests the best default intent service for the given invocation
99 // parameters. 102 // parameters.
100 // |callback| must not be null. 103 // |callback| must not be null.
101 void GetDefaultIntentService(const string16& action, 104 void GetDefaultIntentService(const string16& action,
102 const string16& type, 105 const string16& type,
103 const GURL& invoking_url, 106 const GURL& invoking_url,
104 const DefaultQueryCallback& callback); 107 const DefaultQueryCallback& callback);
105 108
106 protected: 109 protected:
107 // Make sure that only WebIntentsRegistryFactory can create an instance of 110 // Make sure that only WebIntentsRegistryFactory can create an instance of
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Shutdown/cleanup is handled by ProfileImpl. We are guaranteed that any 171 // Shutdown/cleanup is handled by ProfileImpl. We are guaranteed that any
169 // ProfileKeyedService will be shut down before data on ProfileImpl is 172 // ProfileKeyedService will be shut down before data on ProfileImpl is
170 // destroyed (i.e. |extension_service_|), so |extension_service_| is valid 173 // destroyed (i.e. |extension_service_|), so |extension_service_| is valid
171 // for the lifetime of the WebIntentsRegistry object. 174 // for the lifetime of the WebIntentsRegistry object.
172 ExtensionServiceInterface* extension_service_; 175 ExtensionServiceInterface* extension_service_;
173 176
174 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); 177 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry);
175 }; 178 };
176 179
177 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ 180 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/intents/web_intents_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698