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

Side by Side Diff: chrome/browser/omnibox_search_hint.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | « chrome/browser/net/url_request_slow_http_job.h ('k') | chrome/browser/plugin_data_remover.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_OMNIBOX_SEARCH_HINT_H_ 5 #ifndef CHROME_BROWSER_OMNIBOX_SEARCH_HINT_H_
6 #define CHROME_BROWSER_OMNIBOX_SEARCH_HINT_H_ 6 #define CHROME_BROWSER_OMNIBOX_SEARCH_HINT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "content/common/notification_observer.h" 12 #include "content/common/notification_observer.h"
13 #include "content/common/notification_registrar.h" 13 #include "content/common/notification_registrar.h"
14 14
15 class Profile; 15 class Profile;
16 class TabContentsWrapper; 16 class TabContentsWrapper;
17 17
18 // This class is responsible for showing an info-bar that tells the user she 18 // This class is responsible for showing an info-bar that tells the user she
19 // can type her search query directly in the omnibox. 19 // can type her search query directly in the omnibox.
20 // It is displayed when the user visits a known search engine URL and has not 20 // It is displayed when the user visits a known search engine URL and has not
21 // searched from the omnibox before, or has not previously dismissed a similar 21 // searched from the omnibox before, or has not previously dismissed a similar
22 // info-bar. 22 // info-bar.
23 class OmniboxSearchHint : public NotificationObserver { 23 class OmniboxSearchHint : public NotificationObserver {
24 public: 24 public:
25 explicit OmniboxSearchHint(TabContentsWrapper* tab); 25 explicit OmniboxSearchHint(TabContentsWrapper* tab);
26 ~OmniboxSearchHint(); 26 virtual ~OmniboxSearchHint();
27 27
28 // NotificationObserver method: 28 // NotificationObserver method:
29 virtual void Observe(NotificationType type, 29 virtual void Observe(NotificationType type,
30 const NotificationSource& source, 30 const NotificationSource& source,
31 const NotificationDetails& details); 31 const NotificationDetails& details);
32 32
33 // Focus the location bar and displays a message instructing that search 33 // Focus the location bar and displays a message instructing that search
34 // queries can be typed directly in there. 34 // queries can be typed directly in there.
35 void ShowEnteringQuery(); 35 void ShowEnteringQuery();
36 36
(...skipping 15 matching lines...) Expand all
52 TabContentsWrapper* tab_; 52 TabContentsWrapper* tab_;
53 53
54 // A map containing the URLs of the search engine for which we want to 54 // A map containing the URLs of the search engine for which we want to
55 // trigger the hint. 55 // trigger the hint.
56 std::map<std::string, int> search_engine_urls_; 56 std::map<std::string, int> search_engine_urls_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(OmniboxSearchHint); 58 DISALLOW_COPY_AND_ASSIGN(OmniboxSearchHint);
59 }; 59 };
60 60
61 #endif // CHROME_BROWSER_OMNIBOX_SEARCH_HINT_H_ 61 #endif // CHROME_BROWSER_OMNIBOX_SEARCH_HINT_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/url_request_slow_http_job.h ('k') | chrome/browser/plugin_data_remover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698