| 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_DECLARATIVE_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Returns false in case of errors. | 24 // Returns false in case of errors. |
| 25 virtual bool RunImplOnCorrectThread() = 0; | 25 virtual bool RunImplOnCorrectThread() = 0; |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 scoped_refptr<RulesRegistry> rules_registry_; | 28 scoped_refptr<RulesRegistry> rules_registry_; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 class AddRulesFunction : public RulesFunction { | 31 class AddRulesFunction : public RulesFunction { |
| 32 public: | 32 public: |
| 33 virtual bool RunImplOnCorrectThread() OVERRIDE; | 33 virtual bool RunImplOnCorrectThread() OVERRIDE; |
| 34 DECLARE_EXTENSION_FUNCTION_NAME("experimental.declarative.addRules"); | 34 DECLARE_EXTENSION_FUNCTION_NAME("declarative.addRules"); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 class RemoveRulesFunction : public RulesFunction { | 37 class RemoveRulesFunction : public RulesFunction { |
| 38 public: | 38 public: |
| 39 virtual bool RunImplOnCorrectThread() OVERRIDE; | 39 virtual bool RunImplOnCorrectThread() OVERRIDE; |
| 40 DECLARE_EXTENSION_FUNCTION_NAME("experimental.declarative.removeRules"); | 40 DECLARE_EXTENSION_FUNCTION_NAME("declarative.removeRules"); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 class GetRulesFunction : public RulesFunction { | 43 class GetRulesFunction : public RulesFunction { |
| 44 public: | 44 public: |
| 45 virtual bool RunImplOnCorrectThread() OVERRIDE; | 45 virtual bool RunImplOnCorrectThread() OVERRIDE; |
| 46 DECLARE_EXTENSION_FUNCTION_NAME("experimental.declarative.getRules"); | 46 DECLARE_EXTENSION_FUNCTION_NAME("declarative.getRules"); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace extensions | 49 } // namespace extensions |
| 50 | 50 |
| 51 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ | 51 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ |
| OLD | NEW |