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

Side by Side Diff: chrome/browser/autocomplete/extension_app_provider.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 // 5 //
6 // This file contains the Extension App autocomplete provider. The provider 6 // This file contains the Extension App autocomplete provider. The provider
7 // is responsible for keeping track of which Extension Apps are installed and 7 // is responsible for keeping track of which Extension Apps are installed and
8 // their URLs. An instance of it gets created and managed by the autocomplete 8 // their URLs. An instance of it gets created and managed by the autocomplete
9 // controller. 9 // controller.
10 // 10 //
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Register for install/uninstall notification so we can update our cache. 51 // Register for install/uninstall notification so we can update our cache.
52 void RegisterForNotifications(); 52 void RegisterForNotifications();
53 53
54 // Calculate the relevance of the match. 54 // Calculate the relevance of the match.
55 int CalculateRelevance(AutocompleteInput::Type type, 55 int CalculateRelevance(AutocompleteInput::Type type,
56 int input_length, 56 int input_length,
57 int target_length, 57 int target_length,
58 const GURL& url); 58 const GURL& url);
59 59
60 // NotificationObserver implementation: 60 // NotificationObserver implementation:
61 virtual void Observe(NotificationType type, 61 virtual void Observe(int type,
62 const NotificationSource& source, 62 const NotificationSource& source,
63 const NotificationDetails& details) OVERRIDE; 63 const NotificationDetails& details) OVERRIDE;
64 64
65 NotificationRegistrar registrar_; 65 NotificationRegistrar registrar_;
66 66
67 // Our cache of ExtensionApp objects (name + url) representing the extension 67 // Our cache of ExtensionApp objects (name + url) representing the extension
68 // apps we know about. 68 // apps we know about.
69 ExtensionApps extension_apps_; 69 ExtensionApps extension_apps_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(ExtensionAppProvider); 71 DISALLOW_COPY_AND_ASSIGN(ExtensionAppProvider);
72 }; 72 };
73 73
74 #endif // CHROME_BROWSER_AUTOCOMPLETE_EXTENSION_APP_PROVIDER_H_ 74 #endif // CHROME_BROWSER_AUTOCOMPLETE_EXTENSION_APP_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_unittest.cc ('k') | chrome/browser/autocomplete/extension_app_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698