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

Unified Diff: chrome/browser/extensions/api/declarative/declarative_api.h

Issue 550403003: Move declarative api files to extensions/browser/api/declarative. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/declarative/declarative_api.h
diff --git a/chrome/browser/extensions/api/declarative/declarative_api.h b/chrome/browser/extensions/api/declarative/declarative_api.h
deleted file mode 100644
index 502e2fa49eba2525006b933f8d4e3f32ddd59fa6..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/declarative/declarative_api.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H_
-#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H_
-
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "chrome/browser/extensions/api/declarative/rules_registry.h"
-#include "chrome/browser/extensions/chrome_extension_function.h"
-
-namespace extensions {
-
-class RulesFunction : public ChromeAsyncExtensionFunction {
- public:
- RulesFunction();
-
- protected:
- virtual ~RulesFunction();
-
- // ExtensionFunction:
- virtual bool HasPermission() OVERRIDE;
- virtual bool RunAsync() OVERRIDE;
-
- // Concrete implementation of the RulesFunction that is being called
- // on the thread on which the respective RulesRegistry lives.
- // Returns false in case of errors.
- virtual bool RunAsyncOnCorrectThread() = 0;
-
- scoped_refptr<RulesRegistry> rules_registry_;
-};
-
-class EventsEventAddRulesFunction : public RulesFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("events.addRules", EVENTS_ADDRULES)
-
- protected:
- virtual ~EventsEventAddRulesFunction() {}
-
- // RulesFunction:
- virtual bool RunAsyncOnCorrectThread() OVERRIDE;
-};
-
-class EventsEventRemoveRulesFunction : public RulesFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("events.removeRules", EVENTS_REMOVERULES)
-
- protected:
- virtual ~EventsEventRemoveRulesFunction() {}
-
- // RulesFunction:
- virtual bool RunAsyncOnCorrectThread() OVERRIDE;
-};
-
-class EventsEventGetRulesFunction : public RulesFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("events.getRules", EVENTS_GETRULES)
-
- protected:
- virtual ~EventsEventGetRulesFunction() {}
-
- // RulesFunction:
- virtual bool RunAsyncOnCorrectThread() OVERRIDE;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_API_H_

Powered by Google App Engine
This is Rietveld 408576698