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

Side by Side Diff: chrome/browser/intents/web_intents_registry.h

Issue 7633011: Added WebIntents GetAll support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix review nits 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_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 #pragma once 7 #pragma once
8 8
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 29 matching lines...) Expand all
40 // Registers a web intent provider. 40 // Registers a web intent provider.
41 virtual void RegisterIntentProvider(const WebIntentData& intent); 41 virtual void RegisterIntentProvider(const WebIntentData& intent);
42 42
43 // Removes a web intent provider from the registry. 43 // Removes a web intent provider from the registry.
44 void UnregisterIntentProvider(const WebIntentData& intent); 44 void UnregisterIntentProvider(const WebIntentData& intent);
45 45
46 // Requests all intent providers matching |action|. 46 // Requests all intent providers matching |action|.
47 // |consumer| must not be NULL. 47 // |consumer| must not be NULL.
48 QueryID GetIntentProviders(const string16& action, Consumer* consumer); 48 QueryID GetIntentProviders(const string16& action, Consumer* consumer);
49 49
50 // Requests all intent providers. |consumer| must not be NULL
51 QueryID GetAllIntentProviders(Consumer* consumer);
52
50 protected: 53 protected:
51 // Make sure that only WebIntentsRegistryFactory can create an instance of 54 // Make sure that only WebIntentsRegistryFactory can create an instance of
52 // WebIntentsRegistry. 55 // WebIntentsRegistry.
53 friend class WebIntentsRegistryFactory; 56 friend class WebIntentsRegistryFactory;
54 friend class WebIntentsRegistryTest; 57 friend class WebIntentsRegistryTest;
55 58
56 WebIntentsRegistry(); 59 WebIntentsRegistry();
57 virtual ~WebIntentsRegistry(); 60 virtual ~WebIntentsRegistry();
58 61
59 private: 62 private:
(...skipping 13 matching lines...) Expand all
73 // Unique identifier for next intent query. 76 // Unique identifier for next intent query.
74 QueryID next_query_id_; 77 QueryID next_query_id_;
75 78
76 // Local reference to Web Data Service. 79 // Local reference to Web Data Service.
77 scoped_refptr<WebDataService> wds_; 80 scoped_refptr<WebDataService> wds_;
78 81
79 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); 82 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry);
80 }; 83 };
81 84
82 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ 85 #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') | chrome/browser/intents/web_intents_registry_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698