OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Shared memory containing raw script data. | 43 // Shared memory containing raw script data. |
44 scoped_ptr<base::SharedMemory> shared_memory_; | 44 scoped_ptr<base::SharedMemory> shared_memory_; |
45 | 45 |
46 // Parsed script data. | 46 // Parsed script data. |
47 std::vector<UserScript*> scripts_; | 47 std::vector<UserScript*> scripts_; |
48 STLElementDeleter<std::vector<UserScript*> > script_deleter_; | 48 STLElementDeleter<std::vector<UserScript*> > script_deleter_; |
49 | 49 |
50 // Greasemonkey API source that is injected with the scripts. | 50 // Greasemonkey API source that is injected with the scripts. |
51 base::StringPiece api_js_; | 51 base::StringPiece api_js_; |
52 | 52 |
53 // The line number of the first line of the user script among all of the | |
54 // injected javascript. This is used to make reported errors correspond with | |
55 // the proper line in the user script. | |
56 int user_script_start_line_; | |
57 | |
58 DISALLOW_COPY_AND_ASSIGN(UserScriptSlave); | 53 DISALLOW_COPY_AND_ASSIGN(UserScriptSlave); |
59 }; | 54 }; |
60 | 55 |
61 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ | 56 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ |
OLD | NEW |