OLD | NEW |
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_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__ |
7 #pragma once | |
8 | 7 |
9 #include "chrome/browser/extensions/api/declarative/rules_registry_with_cache.h" | 8 #include "chrome/browser/extensions/api/declarative/rules_registry_with_cache.h" |
10 | 9 |
11 namespace extensions { | 10 namespace extensions { |
12 | 11 |
13 // This is a trivial test RulesRegistry that can only store and retrieve rules. | 12 // This is a trivial test RulesRegistry that can only store and retrieve rules. |
14 class TestRulesRegistry : public RulesRegistryWithCache { | 13 class TestRulesRegistry : public RulesRegistryWithCache { |
15 public: | 14 public: |
16 TestRulesRegistry(); | 15 TestRulesRegistry(); |
17 | 16 |
(...skipping 20 matching lines...) Expand all Loading... |
38 private: | 37 private: |
39 // The string that gets returned by the implementation functions of | 38 // The string that gets returned by the implementation functions of |
40 // RulesRegistryWithCache. Defaults to "". | 39 // RulesRegistryWithCache. Defaults to "". |
41 std::string result_; | 40 std::string result_; |
42 content::BrowserThread::ID owner_thread_; | 41 content::BrowserThread::ID owner_thread_; |
43 }; | 42 }; |
44 | 43 |
45 } // namespace extensions | 44 } // namespace extensions |
46 | 45 |
47 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__ | 46 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__ |
OLD | NEW |