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 #include "chrome/renderer/extensions/resource_request_policy.h" | 5 #include "chrome/renderer/extensions/resource_request_policy.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
11 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 11 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
12 #include "chrome/common/extensions/manifest_url_handler.h" | 12 #include "chrome/common/extensions/manifest_url_handler.h" |
13 #include "chrome/common/extensions/web_accessible_resources_handler.h" | |
14 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
15 #include "content/public/common/page_transition_types.h" | 14 #include "content/public/common/page_transition_types.h" |
16 #include "extensions/common/constants.h" | 15 #include "extensions/common/constants.h" |
17 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
18 #include "extensions/common/extension_set.h" | 17 #include "extensions/common/extension_set.h" |
| 18 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h" |
19 #include "third_party/WebKit/public/platform/WebString.h" | 19 #include "third_party/WebKit/public/platform/WebString.h" |
20 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 20 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
21 #include "third_party/WebKit/public/web/WebDocument.h" | 21 #include "third_party/WebKit/public/web/WebDocument.h" |
22 #include "third_party/WebKit/public/web/WebFrame.h" | 22 #include "third_party/WebKit/public/web/WebFrame.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 | 26 |
27 // This method does a security check whether chrome-extension:// URLs can be | 27 // This method does a security check whether chrome-extension:// URLs can be |
28 // requested by the renderer. Since this is in an untrusted process, the browser | 28 // requested by the renderer. Since this is in an untrusted process, the browser |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 return false; | 123 return false; |
124 } | 124 } |
125 | 125 |
126 return true; | 126 return true; |
127 } | 127 } |
128 | 128 |
129 ResourceRequestPolicy::ResourceRequestPolicy() { | 129 ResourceRequestPolicy::ResourceRequestPolicy() { |
130 } | 130 } |
131 | 131 |
132 } // namespace extensions | 132 } // namespace extensions |
OLD | NEW |