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

Side by Side Diff: chrome/browser/autocomplete/autocomplete.cc

Issue 8275004: Revert 105300 - HQP Refactoring (in Preparation for SQLite Cache) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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/autocomplete/history_provider.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 #include "chrome/browser/autocomplete/autocomplete.h" 5 #include "chrome/browser/autocomplete/autocomplete.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 listener_(listener), 497 listener_(listener),
498 done_(true), 498 done_(true),
499 name_(name) { 499 name_(name) {
500 } 500 }
501 501
502 void AutocompleteProvider::Stop() { 502 void AutocompleteProvider::Stop() {
503 done_ = true; 503 done_ = true;
504 } 504 }
505 505
506 void AutocompleteProvider::DeleteMatch(const AutocompleteMatch& match) { 506 void AutocompleteProvider::DeleteMatch(const AutocompleteMatch& match) {
507 DLOG(WARNING) << "The AutocompleteProvider '" << name()
508 << "' has not implemented DeleteMatch.";
509 } 507 }
510 508
511 AutocompleteProvider::~AutocompleteProvider() { 509 AutocompleteProvider::~AutocompleteProvider() {
512 Stop(); 510 Stop();
513 } 511 }
514 512
515 // static 513 // static
516 bool AutocompleteProvider::HasHTTPScheme(const string16& input) { 514 bool AutocompleteProvider::HasHTTPScheme(const string16& input) {
517 std::string utf8_input(UTF16ToUTF8(input)); 515 std::string utf8_input(UTF16ToUTF8(input));
518 url_parse::Component scheme; 516 url_parse::Component scheme;
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 } 1014 }
1017 done_ = true; 1015 done_ = true;
1018 } 1016 }
1019 1017
1020 void AutocompleteController::StartExpireTimer() { 1018 void AutocompleteController::StartExpireTimer() {
1021 if (result_.HasCopiedMatches()) 1019 if (result_.HasCopiedMatches())
1022 expire_timer_.Start(FROM_HERE, 1020 expire_timer_.Start(FROM_HERE,
1023 base::TimeDelta::FromMilliseconds(kExpireTimeMS), 1021 base::TimeDelta::FromMilliseconds(kExpireTimeMS),
1024 this, &AutocompleteController::ExpireCopiedEntries); 1022 this, &AutocompleteController::ExpireCopiedEntries);
1025 } 1023 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698