OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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/user_script_master.h" | 5 #include "chrome/browser/extensions/user_script_master.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/logging.h" | |
12 #include "base/path_service.h" | 11 #include "base/path_service.h" |
13 #include "base/pickle.h" | 12 #include "base/pickle.h" |
14 #include "base/string_util.h" | 13 #include "base/string_util.h" |
15 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
16 #include "chrome/common/stl_util-inl.h" | 15 #include "chrome/common/stl_util-inl.h" |
17 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
18 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
19 | 18 |
20 // static | 19 // static |
21 bool GetDeclarationValue(const StringPiece& line, const StringPiece& prefix, | 20 bool GetDeclarationValue(const StringPiece& line, const StringPiece& prefix, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 270 |
272 StartScan(); | 271 StartScan(); |
273 } | 272 } |
274 | 273 |
275 void UserScriptMaster::StartScan() { | 274 void UserScriptMaster::StartScan() { |
276 if (!script_reloader_) | 275 if (!script_reloader_) |
277 script_reloader_ = new ScriptReloader(this); | 276 script_reloader_ = new ScriptReloader(this); |
278 | 277 |
279 script_reloader_->StartScan(worker_loop_, user_script_dir_, lone_scripts_); | 278 script_reloader_->StartScan(worker_loop_, user_script_dir_, lone_scripts_); |
280 } | 279 } |
OLD | NEW |