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

Side by Side Diff: chrome/browser/extensions/api/declarative/declarative_api.h

Issue 10257006: Move Declarative Web Request API out of experimental and make it a feature (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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_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
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698