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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 10 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
11 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
12 | 12 |
13 class BrowsingDataRemoverCompletionObserver | 13 class BrowsingDataRemoverCompletionObserver |
14 : public BrowsingDataRemover::Observer { | 14 : public BrowsingDataRemover::Observer { |
15 public: | 15 public: |
16 explicit BrowsingDataRemoverCompletionObserver(BrowsingDataRemover* remover); | 16 explicit BrowsingDataRemoverCompletionObserver(BrowsingDataRemover* remover); |
17 ~BrowsingDataRemoverCompletionObserver() override; | 17 ~BrowsingDataRemoverCompletionObserver() override; |
18 | 18 |
(...skipping 25 matching lines...) Expand all Loading... |
44 const base::Closure& continue_to_completion) override; | 44 const base::Closure& continue_to_completion) override; |
45 | 45 |
46 private: | 46 private: |
47 scoped_refptr<content::MessageLoopRunner> message_loop_runner_; | 47 scoped_refptr<content::MessageLoopRunner> message_loop_runner_; |
48 base::Closure continue_to_completion_callback_; | 48 base::Closure continue_to_completion_callback_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemoverCompletionInhibitor); | 50 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemoverCompletionInhibitor); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_TEST_UTIL_H_ | 53 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_TEST_UTIL_H_ |
OLD | NEW |