| OLD | NEW |
| 1 // Copyright 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> |
| 9 #include <vector> | 10 #include <vector> |
| 10 #include <string> | |
| 11 | 11 |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
| 14 #include "chrome/common/extensions/url_pattern.h" | 14 #include "chrome/common/extensions/url_pattern.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 | 16 |
| 17 class Pickle; | 17 class Pickle; |
| 18 | 18 |
| 19 // Represents a user script, either a standalone one, or one that is part of an | 19 // Represents a user script, either a standalone one, or one that is part of an |
| 20 // extension. | 20 // extension. |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // True if the script should be injected into an incognito tab. | 241 // True if the script should be injected into an incognito tab. |
| 242 bool incognito_enabled_; | 242 bool incognito_enabled_; |
| 243 | 243 |
| 244 // True if the user agreed to allow this script access to file URLs. | 244 // True if the user agreed to allow this script access to file URLs. |
| 245 bool allow_file_access_; | 245 bool allow_file_access_; |
| 246 }; | 246 }; |
| 247 | 247 |
| 248 typedef std::vector<UserScript> UserScriptList; | 248 typedef std::vector<UserScript> UserScriptList; |
| 249 | 249 |
| 250 #endif // CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ | 250 #endif // CHROME_COMMON_EXTENSIONS_USER_SCRIPT_H_ |
| OLD | NEW |