Chromium Code Reviews| Index: chrome/browser/extensions/api/declarative/declarative_api.cc |
| diff --git a/chrome/browser/extensions/api/declarative/declarative_api.cc b/chrome/browser/extensions/api/declarative/declarative_api.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..dcb79f387690caae3085e972255cef5714399ee0 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/declarative/declarative_api.cc |
| @@ -0,0 +1,34 @@ |
| +// 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. |
| + |
| +#include "chrome/browser/extensions/api/declarative/declarative_api.h" |
| + |
| +#include "base/values.h" |
| + |
| +namespace extensions { |
| + |
| +bool AddRulesFunction::RunImpl() { |
| + // LOG(ERROR) << "AddRulesFunction called"; |
| + |
| + ListValue* rules_list; |
|
not at google - send to devlin
2012/02/01 23:07:23
= NULL
battre
2012/02/02 13:49:59
Done.
|
| + EXTENSION_FUNCTION_VALIDATE(args_->GetList(1, &rules_list)); |
| + |
| + // TODO(battre): Generate unique IDs and priorities here. |
| + |
| + result_.reset(rules_list->DeepCopy()); |
| + return true; |
| +} |
| + |
| +bool RemoveRulesFunction::RunImpl() { |
| + // LOG(ERROR) << "RemoveRulesFunction called"; |
| + return true; |
| +} |
| + |
| +bool GetRulesFunction::RunImpl() { |
| + // LOG(ERROR) << "GetRulesFunction called"; |
| + result_.reset(new ListValue()); |
| + return true; |
| +} |
| + |
| +} // namespace extensions |