Chromium Code Reviews| 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 a content script or an | |
| 283 // isolated world, for instance from a chrome-extension. When true, the | |
| 284 // navigation should not be blocked by the parent frame's CSP. | |
| 285 virtual bool should_bypass_main_world_csp() const = 0; | |
|
nasko
2017/02/15 21:28:44
Why is this method on the public interface? I don'
arthursonzogni
2017/02/16 17:32:41
You are right.
| |
| 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 |