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

Side by Side Diff: extensions/browser/info_map.cc

Issue 2881453002: DNR Prototype: With flatbuffers
Patch Set: -- Created 3 years, 6 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
« no previous file with comments | « extensions/browser/info_map.h ('k') | extensions/browser/mock_extension_system.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/browser/info_map.h" 5 #include "extensions/browser/info_map.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "extensions/browser/content_verifier.h" 9 #include "extensions/browser/content_verifier.h"
10 #include "extensions/common/constants.h" 10 #include "extensions/common/constants.h"
(...skipping 28 matching lines...) Expand all
39 ExtraData(); 39 ExtraData();
40 ~ExtraData(); 40 ~ExtraData();
41 }; 41 };
42 42
43 InfoMap::ExtraData::ExtraData() 43 InfoMap::ExtraData::ExtraData()
44 : incognito_enabled(false), notifications_disabled(false) { 44 : incognito_enabled(false), notifications_disabled(false) {
45 } 45 }
46 46
47 InfoMap::ExtraData::~ExtraData() {} 47 InfoMap::ExtraData::~ExtraData() {}
48 48
49 InfoMap::InfoMap() { 49 InfoMap::InfoMap() : ruleset_manager_(this) {}
50 }
51 50
52 const ExtensionSet& InfoMap::extensions() const { 51 const ExtensionSet& InfoMap::extensions() const {
53 CheckOnValidThread(); 52 CheckOnValidThread();
54 return extensions_; 53 return extensions_;
55 } 54 }
56 55
57 const ExtensionSet& InfoMap::disabled_extensions() const { 56 const ExtensionSet& InfoMap::disabled_extensions() const {
58 CheckOnValidThread(); 57 CheckOnValidThread();
59 return disabled_extensions_; 58 return disabled_extensions_;
60 } 59 }
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 224 }
226 225
227 InfoMap::~InfoMap() { 226 InfoMap::~InfoMap() {
228 if (quota_service_) { 227 if (quota_service_) {
229 BrowserThread::DeleteSoon( 228 BrowserThread::DeleteSoon(
230 BrowserThread::IO, FROM_HERE, quota_service_.release()); 229 BrowserThread::IO, FROM_HERE, quota_service_.release());
231 } 230 }
232 } 231 }
233 232
234 } // namespace extensions 233 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/info_map.h ('k') | extensions/browser/mock_extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698