OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 RenderFrameHost* render_frame_host, | 271 RenderFrameHost* render_frame_host, |
272 const std::string& raw_response_headers) = 0; | 272 const std::string& raw_response_headers) = 0; |
273 | 273 |
274 // Simulates the navigation being committed. | 274 // Simulates the navigation being committed. |
275 virtual void CallDidCommitNavigationForTesting(const GURL& url) = 0; | 275 virtual void CallDidCommitNavigationForTesting(const GURL& url) = 0; |
276 | 276 |
277 // The NavigationData that the embedder returned from | 277 // The NavigationData that the embedder returned from |
278 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 278 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
279 // be a clone of the NavigationData. | 279 // be a clone of the NavigationData. |
280 virtual NavigationData* GetNavigationData() = 0; | 280 virtual NavigationData* GetNavigationData() = 0; |
281 | |
282 // Whether or not the navigation has been issued by an isolated world. For | |
283 // instance from a chrome-extension. When it returns true, the navigation | |
alexmos
2017/02/14 06:57:20
See my comment about the earlier copy of this comm
arthursonzogni
2017/02/15 09:26:10
Done.
| |
284 // should not be blocked by the main world Content-Security-Policy(CSP). | |
285 virtual bool ShouldBypassMainWorldCSP() const = 0; | |
281 }; | 286 }; |
282 | 287 |
283 } // namespace content | 288 } // namespace content |
284 | 289 |
285 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 290 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
OLD | NEW |