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

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

Issue 10071036: RefCounted types should not have public destructors, chrome/browser/ part 6 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implementation fixes Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/autocomplete/autocomplete.h" 10 #include "chrome/browser/autocomplete/autocomplete.h"
11 11
12 // This class is a base class for the history autocomplete providers and 12 // This class is a base class for the history autocomplete providers and
13 // provides functions useful to all derived classes. 13 // provides functions useful to all derived classes.
14 class HistoryProvider : public AutocompleteProvider { 14 class HistoryProvider : public AutocompleteProvider {
15 public: 15 public:
16 virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE; 16 virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE;
17 17
18 protected: 18 protected:
19 HistoryProvider(ACProviderListener* listener, 19 HistoryProvider(ACProviderListener* listener,
20 Profile* profile, 20 Profile* profile,
21 const char* name); 21 const char* name);
22 virtual ~HistoryProvider();
22 23
23 // Fixes up user URL input to make it more possible to match against. Among 24 // Fixes up user URL input to make it more possible to match against. Among
24 // many other things, this takes care of the following: 25 // many other things, this takes care of the following:
25 // * Prepending file:// to file URLs 26 // * Prepending file:// to file URLs
26 // * Converting drive letters in file URLs to uppercase 27 // * Converting drive letters in file URLs to uppercase
27 // * Converting case-insensitive parts of URLs (like the scheme and domain) 28 // * Converting case-insensitive parts of URLs (like the scheme and domain)
28 // to lowercase 29 // to lowercase
29 // * Convert spaces to %20s 30 // * Convert spaces to %20s
30 // Note that we don't do this in AutocompleteInput's constructor, because if 31 // Note that we don't do this in AutocompleteInput's constructor, because if
31 // e.g. we convert a Unicode hostname to punycode, other providers will show 32 // e.g. we convert a Unicode hostname to punycode, other providers will show
(...skipping 13 matching lines...) Expand all
45 // FixupUserInput(). This method returns true if 46 // FixupUserInput(). This method returns true if
46 // |input.prevent_inline_autocomplete()| is true, or the input text contains 47 // |input.prevent_inline_autocomplete()| is true, or the input text contains
47 // trailing whitespace, or if always_prevent_inline_autocomplete is true. 48 // trailing whitespace, or if always_prevent_inline_autocomplete is true.
48 bool PreventInlineAutocomplete(const AutocompleteInput& input); 49 bool PreventInlineAutocomplete(const AutocompleteInput& input);
49 50
50 // If true, we always prevent inline autocompletions. 51 // If true, we always prevent inline autocompletions.
51 bool always_prevent_inline_autocomplete_; 52 bool always_prevent_inline_autocomplete_;
52 }; 53 };
53 54
54 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 55 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.cc ('k') | chrome/browser/autocomplete/history_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698