| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 5 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return false; | 323 return false; |
| 324 } | 324 } |
| 325 | 325 |
| 326 return true; | 326 return true; |
| 327 } | 327 } |
| 328 | 328 |
| 329 struct EmptyUserScriptList { | 329 struct EmptyUserScriptList { |
| 330 UserScriptList user_script_list; | 330 UserScriptList user_script_list; |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 static base::LazyInstance<EmptyUserScriptList> g_empty_script_list = | 333 static base::LazyInstance<EmptyUserScriptList>::DestructorAtExit |
| 334 LAZY_INSTANCE_INITIALIZER; | 334 g_empty_script_list = LAZY_INSTANCE_INITIALIZER; |
| 335 | 335 |
| 336 } // namespace | 336 } // namespace |
| 337 | 337 |
| 338 ContentScriptsInfo::ContentScriptsInfo() { | 338 ContentScriptsInfo::ContentScriptsInfo() { |
| 339 } | 339 } |
| 340 | 340 |
| 341 ContentScriptsInfo::~ContentScriptsInfo() { | 341 ContentScriptsInfo::~ContentScriptsInfo() { |
| 342 } | 342 } |
| 343 | 343 |
| 344 // static | 344 // static |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 if (!IsScriptValid(path, css_script->relative_path(), | 459 if (!IsScriptValid(path, css_script->relative_path(), |
| 460 IDS_EXTENSION_LOAD_CSS_FAILED, error)) | 460 IDS_EXTENSION_LOAD_CSS_FAILED, error)) |
| 461 return false; | 461 return false; |
| 462 } | 462 } |
| 463 } | 463 } |
| 464 | 464 |
| 465 return true; | 465 return true; |
| 466 } | 466 } |
| 467 | 467 |
| 468 } // namespace extensions | 468 } // namespace extensions |
| OLD | NEW |