OLD | NEW |
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 #ifndef CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ |
6 #define CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ | 6 #define CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/string_piece.h" | 12 #include "base/string_piece.h" |
13 #include "chrome/common/extensions/url_pattern_set.h" | |
14 #include "extensions/common/url_pattern.h" | 13 #include "extensions/common/url_pattern.h" |
| 14 #include "extensions/common/url_pattern_set.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 | 16 |
17 class Pickle; | 17 class Pickle; |
18 class PickleIterator; | 18 class PickleIterator; |
19 | 19 |
20 namespace extensions { | 20 namespace extensions { |
21 | 21 |
22 // Represents a user script, either a standalone one, or one that is part of an | 22 // Represents a user script, either a standalone one, or one that is part of an |
23 // extension. | 23 // extension. |
24 class UserScript { | 24 class UserScript { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 254 |
255 // True if the script should be injected into an incognito tab. | 255 // True if the script should be injected into an incognito tab. |
256 bool incognito_enabled_; | 256 bool incognito_enabled_; |
257 }; | 257 }; |
258 | 258 |
259 typedef std::vector<UserScript> UserScriptList; | 259 typedef std::vector<UserScript> UserScriptList; |
260 | 260 |
261 } // namespace extensions | 261 } // namespace extensions |
262 | 262 |
263 #endif // CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ | 263 #endif // CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ |
OLD | NEW |