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

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

Issue 7541062: Web Intents: Fix a leak. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Maps web data requests to intents queries. 53 // Maps web data requests to intents queries.
54 // Allows OnWebDataServiceRequestDone to forward to appropiate consumer. 54 // Allows OnWebDataServiceRequestDone to forward to appropiate consumer.
55 typedef base::hash_map<WebDataService::Handle, IntentsQuery*> QueryMap; 55 typedef base::hash_map<WebDataService::Handle, IntentsQuery*> QueryMap;
56 56
57 // WebDataServiceConsumer implementation. 57 // WebDataServiceConsumer implementation.
58 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 58 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
59 const WDTypedResult* result); 59 const WDTypedResult* result);
60 60
61 // Map for all in-flight web data requests/intent queries. 61 // Map for all in-flight web data requests/intent queries.
62 QueryMap queries; 62 QueryMap queries_;
63 63
64 // Unique identifier for next intent query. 64 // Unique identifier for next intent query.
65 QueryID next_query_id_; 65 QueryID next_query_id_;
66 66
67 // Local reference to Web Data Service. 67 // Local reference to Web Data Service.
68 scoped_refptr<WebDataService> wds_; 68 scoped_refptr<WebDataService> wds_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry); 70 DISALLOW_COPY_AND_ASSIGN(WebIntentsRegistry);
71 }; 71 };
72 72
73 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ 73 #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