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

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

Issue 10071035: RefCounted types should not have public destructors, chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix 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
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/test_rules_registry.h" 5 #include "chrome/browser/extensions/api/declarative/test_rules_registry.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 TestRulesRegistry::TestRulesRegistry() 9 TestRulesRegistry::TestRulesRegistry()
10 : owner_thread_(content::BrowserThread::UI) {} 10 : owner_thread_(content::BrowserThread::UI) {}
11 11
12 TestRulesRegistry::~TestRulesRegistry() {}
13
14 content::BrowserThread::ID TestRulesRegistry::GetOwnerThread() const {
15 return owner_thread_;
16 }
17
18 void TestRulesRegistry::SetOwnerThread( 12 void TestRulesRegistry::SetOwnerThread(
19 content::BrowserThread::ID owner_thread) { 13 content::BrowserThread::ID owner_thread) {
20 owner_thread_ = owner_thread; 14 owner_thread_ = owner_thread;
21 } 15 }
22 16
23 std::string TestRulesRegistry::AddRulesImpl( 17 std::string TestRulesRegistry::AddRulesImpl(
24 const std::string& extension_id, 18 const std::string& extension_id,
25 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) { 19 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) {
26 return result_; 20 return result_;
27 } 21 }
28 22
29 std::string TestRulesRegistry::RemoveRulesImpl( 23 std::string TestRulesRegistry::RemoveRulesImpl(
30 const std::string& extension_id, 24 const std::string& extension_id,
31 const std::vector<std::string>& rule_identifiers) { 25 const std::vector<std::string>& rule_identifiers) {
32 return result_; 26 return result_;
33 } 27 }
34 28
35 std::string TestRulesRegistry::RemoveAllRulesImpl( 29 std::string TestRulesRegistry::RemoveAllRulesImpl(
36 const std::string& extension_id) { 30 const std::string& extension_id) {
37 return result_; 31 return result_;
38 } 32 }
39 33
34 content::BrowserThread::ID TestRulesRegistry::GetOwnerThread() const {
35 return owner_thread_;
36 }
37
40 void TestRulesRegistry::SetResult(const std::string& result) { 38 void TestRulesRegistry::SetResult(const std::string& result) {
41 result_ = result; 39 result_ = result;
42 } 40 }
43 41
42 TestRulesRegistry::~TestRulesRegistry() {}
43
44 } // namespace extensions 44 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698