OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_HISTORY_CORE_BROWSER_URL_ROW_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_URL_ROW_H_ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_URL_ROW_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_URL_ROW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 class URLResult : public URLRow { | 161 class URLResult : public URLRow { |
162 public: | 162 public: |
163 URLResult(); | 163 URLResult(); |
164 URLResult(const GURL& url, base::Time visit_time); | 164 URLResult(const GURL& url, base::Time visit_time); |
165 // Constructor that create a URLResult from the specified URL and title match | 165 // Constructor that create a URLResult from the specified URL and title match |
166 // positions from title_matches. | 166 // positions from title_matches. |
167 URLResult(const GURL& url, | 167 URLResult(const GURL& url, |
168 const query_parser::Snippet::MatchPositions& title_matches); | 168 const query_parser::Snippet::MatchPositions& title_matches); |
169 explicit URLResult(const URLRow& url_row); | 169 explicit URLResult(const URLRow& url_row); |
170 virtual ~URLResult(); | 170 ~URLResult() override; |
171 | 171 |
172 base::Time visit_time() const { return visit_time_; } | 172 base::Time visit_time() const { return visit_time_; } |
173 void set_visit_time(base::Time visit_time) { visit_time_ = visit_time; } | 173 void set_visit_time(base::Time visit_time) { visit_time_ = visit_time; } |
174 | 174 |
175 const query_parser::Snippet& snippet() const { return snippet_; } | 175 const query_parser::Snippet& snippet() const { return snippet_; } |
176 | 176 |
177 bool blocked_visit() const { return blocked_visit_; } | 177 bool blocked_visit() const { return blocked_visit_; } |
178 void set_blocked_visit(bool blocked_visit) { | 178 void set_blocked_visit(bool blocked_visit) { |
179 blocked_visit_ = blocked_visit; | 179 blocked_visit_ = blocked_visit; |
180 } | 180 } |
(...skipping 21 matching lines...) Expand all Loading... |
202 | 202 |
203 // Whether a managed user was blocked when attempting to visit this URL. | 203 // Whether a managed user was blocked when attempting to visit this URL. |
204 bool blocked_visit_; | 204 bool blocked_visit_; |
205 | 205 |
206 // We support the implicit copy constructor and operator=. | 206 // We support the implicit copy constructor and operator=. |
207 }; | 207 }; |
208 | 208 |
209 } // namespace history | 209 } // namespace history |
210 | 210 |
211 #endif // COMPONENTS_HISTORY_CORE_BROWSER_URL_ROW_H_ | 211 #endif // COMPONENTS_HISTORY_CORE_BROWSER_URL_ROW_H_ |
OLD | NEW |