| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef EXTENSIONS_COMMON_USER_SCRIPT_H_ | 5 #ifndef EXTENSIONS_COMMON_USER_SCRIPT_H_ |
| 6 #define EXTENSIONS_COMMON_USER_SCRIPT_H_ | 6 #define EXTENSIONS_COMMON_USER_SCRIPT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 bool match_all_frames_; | 310 bool match_all_frames_; |
| 311 | 311 |
| 312 // Whether the user script should run in about:blank and about:srcdoc as well. | 312 // Whether the user script should run in about:blank and about:srcdoc as well. |
| 313 // Defaults to false. | 313 // Defaults to false. |
| 314 bool match_about_blank_; | 314 bool match_about_blank_; |
| 315 | 315 |
| 316 // True if the script should be injected into an incognito tab. | 316 // True if the script should be injected into an incognito tab. |
| 317 bool incognito_enabled_; | 317 bool incognito_enabled_; |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 // Information we need while removing scripts from a UserScriptLoader. |
| 321 struct UserScriptIDPair { |
| 322 UserScriptIDPair(int id, const HostID& host_id); |
| 323 UserScriptIDPair(int id); |
| 324 |
| 325 int id; |
| 326 HostID host_id; |
| 327 }; |
| 328 |
| 320 // For storing UserScripts with unique IDs in sets. | 329 // For storing UserScripts with unique IDs in sets. |
| 321 bool operator<(const UserScript& script1, const UserScript& script2); | 330 bool operator<(const UserScript& script1, const UserScript& script2); |
| 322 | 331 |
| 332 bool operator<(const UserScriptIDPair& a, const UserScriptIDPair& b); |
| 333 |
| 323 typedef std::vector<UserScript> UserScriptList; | 334 typedef std::vector<UserScript> UserScriptList; |
| 324 | 335 |
| 325 } // namespace extensions | 336 } // namespace extensions |
| 326 | 337 |
| 327 #endif // EXTENSIONS_COMMON_USER_SCRIPT_H_ | 338 #endif // EXTENSIONS_COMMON_USER_SCRIPT_H_ |
| OLD | NEW |