Upload upstream chromium 114.0.5735.31
[platform/framework/web/chromium-efl.git] / components / search_engines / template_url_service_observer.h
index eb3ba66..8f71752 100644 (file)
@@ -1,13 +1,15 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_
 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_
 
+#include "base/observer_list_types.h"
+
 // TemplateURLServiceObserver is notified whenever the set of TemplateURLs
 // are modified.
-class TemplateURLServiceObserver {
+class TemplateURLServiceObserver : public base::CheckedObserver {
  public:
   // Notification that the template url model has changed in some way.
   virtual void OnTemplateURLServiceChanged() = 0;
@@ -18,7 +20,7 @@ class TemplateURLServiceObserver {
   virtual void OnTemplateURLServiceShuttingDown() {}
 
  protected:
-  virtual ~TemplateURLServiceObserver() {}
+  ~TemplateURLServiceObserver() override {}
 };
 
 #endif  // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_