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

Side by Side Diff: components/search_engines/template_url.h

Issue 2498053002: Add field to monitor last visited time for each search engine (Closed)
Patch Set: Remove sync operations of last_visited field. Created 4 years 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
OLDNEW
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_SEARCH_ENGINES_TEMPLATE_URL_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 bool safe_for_autoreplace() const { return data_.safe_for_autoreplace; } 574 bool safe_for_autoreplace() const { return data_.safe_for_autoreplace; }
575 575
576 const std::vector<std::string>& input_encodings() const { 576 const std::vector<std::string>& input_encodings() const {
577 return data_.input_encodings; 577 return data_.input_encodings;
578 } 578 }
579 579
580 TemplateURLID id() const { return data_.id; } 580 TemplateURLID id() const { return data_.id; }
581 581
582 base::Time date_created() const { return data_.date_created; } 582 base::Time date_created() const { return data_.date_created; }
583 base::Time last_modified() const { return data_.last_modified; } 583 base::Time last_modified() const { return data_.last_modified; }
584 base::Time last_visited() const { return data_.last_visited; }
584 585
585 bool created_by_policy() const { return data_.created_by_policy; } 586 bool created_by_policy() const { return data_.created_by_policy; }
586 587
587 int usage_count() const { return data_.usage_count; } 588 int usage_count() const { return data_.usage_count; }
588 589
589 int prepopulate_id() const { return data_.prepopulate_id; } 590 int prepopulate_id() const { return data_.prepopulate_id; }
590 591
591 const std::string& sync_guid() const { return data_.sync_guid; } 592 const std::string& sync_guid() const { return data_.sync_guid; }
592 593
593 // TODO(beaudoin): Rename this when renaming HasSearchTermsReplacementKey(). 594 // TODO(beaudoin): Rename this when renaming HasSearchTermsReplacementKey().
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 754
754 // Caches the computed engine type across successive calls to GetEngineType(). 755 // Caches the computed engine type across successive calls to GetEngineType().
755 mutable SearchEngineType engine_type_; 756 mutable SearchEngineType engine_type_;
756 757
757 // TODO(sky): Add date last parsed OSD file. 758 // TODO(sky): Add date last parsed OSD file.
758 759
759 DISALLOW_COPY_AND_ASSIGN(TemplateURL); 760 DISALLOW_COPY_AND_ASSIGN(TemplateURL);
760 }; 761 };
761 762
762 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ 763 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698