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

Side by Side Diff: chrome/browser/extensions/extension_service.cc

Issue 10824342: Attached data cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 2490
2491 bool ExtensionService::HasUsedWebRequest(const Extension* extension) { 2491 bool ExtensionService::HasUsedWebRequest(const Extension* extension) {
2492 return extension_runtime_data_[extension->id()].has_used_webrequest; 2492 return extension_runtime_data_[extension->id()].has_used_webrequest;
2493 } 2493 }
2494 2494
2495 void ExtensionService::SetHasUsedWebRequest(const Extension* extension, 2495 void ExtensionService::SetHasUsedWebRequest(const Extension* extension,
2496 bool value) { 2496 bool value) {
2497 extension_runtime_data_[extension->id()].has_used_webrequest = value; 2497 extension_runtime_data_[extension->id()].has_used_webrequest = value;
2498 } 2498 }
2499 2499
2500 base::PropertyBag* ExtensionService::GetPropertyBag(
2501 const Extension* extension) {
2502 return &extension_runtime_data_[extension->id()].property_bag;
2503 }
2504
2505 void ExtensionService::RegisterNaClModule(const GURL& url, 2500 void ExtensionService::RegisterNaClModule(const GURL& url,
2506 const std::string& mime_type) { 2501 const std::string& mime_type) {
2507 NaClModuleInfo info; 2502 NaClModuleInfo info;
2508 info.url = url; 2503 info.url = url;
2509 info.mime_type = mime_type; 2504 info.mime_type = mime_type;
2510 2505
2511 DCHECK(FindNaClModule(url) == nacl_module_list_.end()); 2506 DCHECK(FindNaClModule(url) == nacl_module_list_.end());
2512 nacl_module_list_.push_front(info); 2507 nacl_module_list_.push_front(info);
2513 } 2508 }
2514 2509
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 2563
2569 ExtensionService::NaClModuleInfoList::iterator 2564 ExtensionService::NaClModuleInfoList::iterator
2570 ExtensionService::FindNaClModule(const GURL& url) { 2565 ExtensionService::FindNaClModule(const GURL& url) {
2571 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); 2566 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin();
2572 iter != nacl_module_list_.end(); ++iter) { 2567 iter != nacl_module_list_.end(); ++iter) {
2573 if (iter->url == url) 2568 if (iter->url == url)
2574 return iter; 2569 return iter;
2575 } 2570 }
2576 return nacl_module_list_.end(); 2571 return nacl_module_list_.end();
2577 } 2572 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698