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

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

Issue 266963003: Beginning of support for extension content verification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged latest trunk Created 6 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
« no previous file with comments | « extensions/browser/info_map.h ('k') | extensions/common/switches.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 "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 #include "extensions/browser/content_verifier.h"
8 #include "extensions/common/constants.h" 9 #include "extensions/common/constants.h"
9 #include "extensions/common/extension.h" 10 #include "extensions/common/extension.h"
10 #include "extensions/common/extension_set.h" 11 #include "extensions/common/extension_set.h"
11 #include "extensions/common/manifest_handlers/incognito_info.h" 12 #include "extensions/common/manifest_handlers/incognito_info.h"
12 13
13 using content::BrowserThread; 14 using content::BrowserThread;
14 15
15 namespace extensions { 16 namespace extensions {
16 17
17 namespace { 18 namespace {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } 201 }
201 202
202 bool InfoMap::AreNotificationsDisabled( 203 bool InfoMap::AreNotificationsDisabled(
203 const std::string& extension_id) const { 204 const std::string& extension_id) const {
204 ExtraDataMap::const_iterator iter = extra_data_.find(extension_id); 205 ExtraDataMap::const_iterator iter = extra_data_.find(extension_id);
205 if (iter != extra_data_.end()) 206 if (iter != extra_data_.end())
206 return iter->second.notifications_disabled; 207 return iter->second.notifications_disabled;
207 return false; 208 return false;
208 } 209 }
209 210
211 void InfoMap::SetContentVerifier(ContentVerifier* verifier) {
212 content_verifier_ = verifier;
213 }
214
210 InfoMap::~InfoMap() { 215 InfoMap::~InfoMap() {
211 if (quota_service_) { 216 if (quota_service_) {
212 BrowserThread::DeleteSoon( 217 BrowserThread::DeleteSoon(
213 BrowserThread::IO, FROM_HERE, quota_service_.release()); 218 BrowserThread::IO, FROM_HERE, quota_service_.release());
214 } 219 }
215 } 220 }
216 221
217 } // namespace extensions 222 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/info_map.h ('k') | extensions/common/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698