Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / sync / test / integration / dictionary_load_observer.h
blob9110c7e9296afb4bce62f93645653e11c4b99b30
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_
8 #include "base/callback.h"
9 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h"
11 // DictionaryLoadObserver is used when blocking until the
12 // SpellcheckCustomDictionary finishes loading. As soon as the
13 // SpellcheckCustomDictionary finishes loading, the message loop is quit.
14 class DictionaryLoadObserver : public SpellcheckCustomDictionary::Observer {
15 public:
16 explicit DictionaryLoadObserver(const base::Closure& quit_task);
17 virtual ~DictionaryLoadObserver();
19 // SpellcheckCustomDictionary::Observer implementation.
20 void OnCustomDictionaryLoaded() override;
21 void OnCustomDictionaryChanged(
22 const SpellcheckCustomDictionary::Change& dictionary_change) override;
24 private:
25 base::Closure quit_task_;
26 DISALLOW_COPY_AND_ASSIGN(DictionaryLoadObserver);
29 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_