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

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

Issue 10392127: Move declarative API into events API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix change schema type reference from 'Event' to 'events.Event' Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative/declarative_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 // Concrete implementation of the RulesFunction that is being called 26 // Concrete implementation of the RulesFunction that is being called
27 // on the thread on which the respective RulesRegistry lives. 27 // on the thread on which the respective RulesRegistry lives.
28 // Returns false in case of errors. 28 // Returns false in case of errors.
29 virtual bool RunImplOnCorrectThread() = 0; 29 virtual bool RunImplOnCorrectThread() = 0;
30 30
31 scoped_refptr<RulesRegistry> rules_registry_; 31 scoped_refptr<RulesRegistry> rules_registry_;
32 }; 32 };
33 33
34 class AddRulesFunction : public RulesFunction { 34 class AddRulesFunction : public RulesFunction {
35 public: 35 public:
36 DECLARE_EXTENSION_FUNCTION_NAME("declarative.addRules"); 36 DECLARE_EXTENSION_FUNCTION_NAME("events.addRules");
37 37
38 protected: 38 protected:
39 virtual ~AddRulesFunction() {} 39 virtual ~AddRulesFunction() {}
40 40
41 // RulesFunction: 41 // RulesFunction:
42 virtual bool RunImplOnCorrectThread() OVERRIDE; 42 virtual bool RunImplOnCorrectThread() OVERRIDE;
43 }; 43 };
44 44
45 class RemoveRulesFunction : public RulesFunction { 45 class RemoveRulesFunction : public RulesFunction {
46 public: 46 public:
47 DECLARE_EXTENSION_FUNCTION_NAME("declarative.removeRules"); 47 DECLARE_EXTENSION_FUNCTION_NAME("events.removeRules");
48 48
49 protected: 49 protected:
50 virtual ~RemoveRulesFunction() {} 50 virtual ~RemoveRulesFunction() {}
51 51
52 // RulesFunction: 52 // RulesFunction:
53 virtual bool RunImplOnCorrectThread() OVERRIDE; 53 virtual bool RunImplOnCorrectThread() OVERRIDE;
54 }; 54 };
55 55
56 class GetRulesFunction : public RulesFunction { 56 class GetRulesFunction : public RulesFunction {
57 public: 57 public:
58 DECLARE_EXTENSION_FUNCTION_NAME("declarative.getRules"); 58 DECLARE_EXTENSION_FUNCTION_NAME("events.getRules");
59 59
60 protected: 60 protected:
61 virtual ~GetRulesFunction() {} 61 virtual ~GetRulesFunction() {}
62 62
63 // RulesFunction: 63 // RulesFunction:
64 virtual bool RunImplOnCorrectThread() OVERRIDE; 64 virtual bool RunImplOnCorrectThread() OVERRIDE;
65 }; 65 };
66 66
67 } // namespace extensions 67 } // namespace extensions
68 68
69 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__ 69 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative/declarative_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698