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

Side by Side Diff: chrome/browser/sync/test/integration/dictionary_load_observer.h

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h"
9 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" 10 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h"
10 11
11 // DictionaryLoadObserver is used when blocking until the 12 // DictionaryLoadObserver is used when blocking until the
12 // SpellcheckCustomDictionary finishes loading. As soon as the 13 // SpellcheckCustomDictionary finishes loading. As soon as the
13 // SpellcheckCustomDictionary finishes loading, the message loop is quit. 14 // SpellcheckCustomDictionary finishes loading, the message loop is quit.
14 class DictionaryLoadObserver : public SpellcheckCustomDictionary::Observer { 15 class DictionaryLoadObserver : public SpellcheckCustomDictionary::Observer {
15 public: 16 public:
16 explicit DictionaryLoadObserver(const base::Closure& quit_task); 17 explicit DictionaryLoadObserver(const base::Closure& quit_task);
17 virtual ~DictionaryLoadObserver(); 18 virtual ~DictionaryLoadObserver();
18 19
19 // SpellcheckCustomDictionary::Observer implementation. 20 // SpellcheckCustomDictionary::Observer implementation.
20 void OnCustomDictionaryLoaded() override; 21 void OnCustomDictionaryLoaded() override;
21 void OnCustomDictionaryChanged( 22 void OnCustomDictionaryChanged(
22 const SpellcheckCustomDictionary::Change& dictionary_change) override; 23 const SpellcheckCustomDictionary::Change& dictionary_change) override;
23 24
24 private: 25 private:
25 base::Closure quit_task_; 26 base::Closure quit_task_;
26 DISALLOW_COPY_AND_ASSIGN(DictionaryLoadObserver); 27 DISALLOW_COPY_AND_ASSIGN(DictionaryLoadObserver);
27 }; 28 };
28 29
29 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_ 30 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_LOAD_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/dictionary_helper.h ('k') | chrome/browser/sync/test/integration/enable_disable_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698