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

Side by Side Diff: components/history/core/browser/history_match.cc

Issue 371283002: Componentize HistoryMatch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « components/history/core/browser/history_match.h ('k') | no next file » | 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) 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 #include "chrome/browser/autocomplete/history_provider_util.h" 5 #include "components/history/core/browser/history_match.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace history { 9 namespace history {
10 10
11 HistoryMatch::HistoryMatch() 11 HistoryMatch::HistoryMatch()
12 : url_info(), 12 : url_info(),
13 input_location(base::string16::npos), 13 input_location(base::string16::npos),
14 match_in_scheme(false), 14 match_in_scheme(false),
15 innermost_match(true) { 15 innermost_match(true) {
(...skipping 14 matching lines...) Expand all
30 } 30 }
31 31
32 bool HistoryMatch::IsHostOnly() const { 32 bool HistoryMatch::IsHostOnly() const {
33 const GURL& gurl = url_info.url(); 33 const GURL& gurl = url_info.url();
34 DCHECK(gurl.is_valid()); 34 DCHECK(gurl.is_valid());
35 return (!gurl.has_path() || (gurl.path() == "/")) && !gurl.has_query() && 35 return (!gurl.has_path() || (gurl.path() == "/")) && !gurl.has_query() &&
36 !gurl.has_ref(); 36 !gurl.has_ref();
37 } 37 }
38 38
39 } // namespace history 39 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/history_match.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698