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 | |
8 | 7 |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
11 #include "chrome/browser/extensions/api/declarative/rules_registry.h" | 10 #include "chrome/browser/extensions/api/declarative/rules_registry.h" |
12 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
13 | 12 |
14 namespace extensions { | 13 namespace extensions { |
15 | 14 |
16 class RulesFunction : public AsyncExtensionFunction { | 15 class RulesFunction : public AsyncExtensionFunction { |
17 public: | 16 public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 protected: | 59 protected: |
61 virtual ~GetRulesFunction() {} | 60 virtual ~GetRulesFunction() {} |
62 | 61 |
63 // RulesFunction: | 62 // RulesFunction: |
64 virtual bool RunImplOnCorrectThread() OVERRIDE; | 63 virtual bool RunImplOnCorrectThread() OVERRIDE; |
65 }; | 64 }; |
66 | 65 |
67 } // namespace extensions | 66 } // namespace extensions |
68 | 67 |
69 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ | 68 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ |
OLD | NEW |