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

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

Issue 50743005: Moved extension_api to src/extensions/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops Created 7 years, 1 month 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/storage/settings_storage_quota_enforcer.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 #include "chrome/browser/extensions/api/declarative/declarative_api.h" 5 #include "chrome/browser/extensions/api/declarative/declarative_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/task_runner_util.h" 9 #include "base/task_runner_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" 11 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h"
12 #include "chrome/browser/extensions/extension_system_factory.h" 12 #include "chrome/browser/extensions/extension_system_factory.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/extensions/api/events.h" 14 #include "chrome/common/extensions/api/events.h"
15 #include "chrome/common/extensions/api/extension_api.h"
16 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "extensions/common/extension_api.h"
17 17
18 using extensions::api::events::Rule; 18 using extensions::api::events::Rule;
19 19
20 namespace AddRules = extensions::api::events::Event::AddRules; 20 namespace AddRules = extensions::api::events::Event::AddRules;
21 namespace GetRules = extensions::api::events::Event::GetRules; 21 namespace GetRules = extensions::api::events::Event::GetRules;
22 namespace RemoveRules = extensions::api::events::Event::RemoveRules; 22 namespace RemoveRules = extensions::api::events::Event::RemoveRules;
23 23
24 namespace extensions { 24 namespace extensions {
25 25
26 RulesFunction::RulesFunction() : rules_registry_(NULL) {} 26 RulesFunction::RulesFunction() : rules_registry_(NULL) {}
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 error_ = rules_registry_->GetAllRules(extension_id(), &rules); 104 error_ = rules_registry_->GetAllRules(extension_id(), &rules);
105 } 105 }
106 106
107 if (error_.empty()) 107 if (error_.empty())
108 results_ = GetRules::Results::Create(rules); 108 results_ = GetRules::Results::Create(rules);
109 109
110 return error_.empty(); 110 return error_.empty();
111 } 111 }
112 112
113 } // namespace extensions 113 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698