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

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

Issue 7796020: Rename intents_settings_handler files to web_intents_settings_handler. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge to head Created 9 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/intents/intents_model.h » ('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) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 50 // Requests all intent providers. |consumer| must not be NULL
51 QueryID GetAllIntentProviders(Consumer* consumer); 51 QueryID GetAllIntentProviders(Consumer* consumer);
52 52
53 protected: 53 protected:
54 // Make sure that only WebIntentsRegistryFactory can create an instance of 54 // Make sure that only WebIntentsRegistryFactory can create an instance of
55 // WebIntentsRegistry. 55 // WebIntentsRegistry.
56 friend class WebIntentsRegistryFactory; 56 friend class WebIntentsRegistryFactory;
57 friend class WebIntentsRegistryTest; 57 friend class WebIntentsRegistryTest;
58 friend class IntentsModelTest; 58 friend class WebIntentsModelTest;
59 59
60 WebIntentsRegistry(); 60 WebIntentsRegistry();
61 virtual ~WebIntentsRegistry(); 61 virtual ~WebIntentsRegistry();
62 62
63 private: 63 private:
64 struct IntentsQuery; 64 struct IntentsQuery;
65 65
66 // Maps web data requests to intents queries. 66 // Maps web data requests to intents queries.
67 // Allows OnWebDataServiceRequestDone to forward to appropriate consumer. 67 // Allows OnWebDataServiceRequestDone to forward to appropriate consumer.
68 typedef base::hash_map<WebDataService::Handle, IntentsQuery*> QueryMap; 68 typedef base::hash_map<WebDataService::Handle, IntentsQuery*> QueryMap;
69 69
70 // WebDataServiceConsumer implementation. 70 // WebDataServiceConsumer implementation.
71 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 71 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
72 const WDTypedResult* result); 72 const WDTypedResult* result);
73 73
74 // Map for all in-flight web data requests/intent queries. 74 // Map for all in-flight web data requests/intent queries.
75 QueryMap queries_; 75 QueryMap queries_;
76 76
77 // Unique identifier for next intent query. 77 // Unique identifier for next intent query.
78 QueryID next_query_id_; 78 QueryID next_query_id_;
79 79
80 // Local reference to Web Data Service. 80 // Local reference to Web Data Service.
81 scoped_refptr<WebDataService> wds_; 81 scoped_refptr<WebDataService> wds_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); 83 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry);
84 }; 84 };
85 85
86 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ 86 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/intents/intents_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698