OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "extensions/common/permissions/permissions_data.h" | 5 #include "extensions/common/permissions/permissions_data.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/public/common/url_constants.h" | 8 #include "content/public/common/url_constants.h" |
9 #include "extensions/common/constants.h" | 9 #include "extensions/common/constants.h" |
10 #include "extensions/common/error_utils.h" | 10 #include "extensions/common/error_utils.h" |
| 11 #include "extensions/common/extension.h" |
11 #include "extensions/common/extensions_client.h" | 12 #include "extensions/common/extensions_client.h" |
12 #include "extensions/common/manifest.h" | |
13 #include "extensions/common/manifest_constants.h" | 13 #include "extensions/common/manifest_constants.h" |
14 #include "extensions/common/manifest_handlers/permissions_parser.h" | 14 #include "extensions/common/manifest_handlers/permissions_parser.h" |
15 #include "extensions/common/permissions/permission_message_provider.h" | 15 #include "extensions/common/permissions/permission_message_provider.h" |
16 #include "extensions/common/switches.h" | 16 #include "extensions/common/switches.h" |
17 #include "extensions/common/url_pattern_set.h" | 17 #include "extensions/common/url_pattern_set.h" |
18 #include "extensions/common/user_script.h" | |
19 #include "url/gurl.h" | 18 #include "url/gurl.h" |
20 #include "url/url_constants.h" | 19 #include "url/url_constants.h" |
21 | 20 |
22 namespace extensions { | 21 namespace extensions { |
23 | 22 |
24 namespace { | 23 namespace { |
25 | 24 |
26 PermissionsData::PolicyDelegate* g_policy_delegate = NULL; | 25 PermissionsData::PolicyDelegate* g_policy_delegate = NULL; |
27 | 26 |
28 } // namespace | 27 } // namespace |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 return ACCESS_WITHHELD; | 359 return ACCESS_WITHHELD; |
361 | 360 |
362 if (error) { | 361 if (error) { |
363 *error = ErrorUtils::FormatErrorMessage(manifest_errors::kCannotAccessPage, | 362 *error = ErrorUtils::FormatErrorMessage(manifest_errors::kCannotAccessPage, |
364 document_url.spec()); | 363 document_url.spec()); |
365 } | 364 } |
366 return ACCESS_DENIED; | 365 return ACCESS_DENIED; |
367 } | 366 } |
368 | 367 |
369 } // namespace extensions | 368 } // namespace extensions |
OLD | NEW |