| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 BLINK_PLATFORM_EXPORT LoadingIPCType GetLoadingIPCType() const; | 340 BLINK_PLATFORM_EXPORT LoadingIPCType GetLoadingIPCType() const; |
| 341 | 341 |
| 342 BLINK_PLATFORM_EXPORT void SetNavigationStartTime(double); | 342 BLINK_PLATFORM_EXPORT void SetNavigationStartTime(double); |
| 343 | 343 |
| 344 // PlzNavigate: specify that the request was intended to be loaded as a same | 344 // PlzNavigate: specify that the request was intended to be loaded as a same |
| 345 // document navigation. No network requests should be made and the request | 345 // document navigation. No network requests should be made and the request |
| 346 // should be dropped if a different document was loaded in the frame | 346 // should be dropped if a different document was loaded in the frame |
| 347 // in-between. | 347 // in-between. |
| 348 BLINK_PLATFORM_EXPORT void SetIsSameDocumentNavigation(bool); | 348 BLINK_PLATFORM_EXPORT void SetIsSameDocumentNavigation(bool); |
| 349 | 349 |
| 350 // The DevTools agent host id associated with the requesting page, if any. |
| 351 BLINK_PLATFORM_EXPORT WebString DevToolsAgentHostId() const; |
| 352 |
| 353 // The associated DevTools request id, if any. |
| 354 BLINK_PLATFORM_EXPORT WebString DevToolsRequestId() const; |
| 355 |
| 356 // The lets the content layer provide the internal id for this request, which |
| 357 // is needed to generate consistent DevTools Request Ids from both browser and |
| 358 // renderer. |
| 359 BLINK_PLATFORM_EXPORT void SetBrowserGeneratedRequestId(unsigned); |
| 360 |
| 350 #if INSIDE_BLINK | 361 #if INSIDE_BLINK |
| 351 BLINK_PLATFORM_EXPORT ResourceRequest& ToMutableResourceRequest(); | 362 BLINK_PLATFORM_EXPORT ResourceRequest& ToMutableResourceRequest(); |
| 352 BLINK_PLATFORM_EXPORT const ResourceRequest& ToResourceRequest() const; | 363 BLINK_PLATFORM_EXPORT const ResourceRequest& ToResourceRequest() const; |
| 353 | 364 |
| 354 protected: | 365 protected: |
| 355 // Permit subclasses to set arbitrary ResourceRequest pointer as | 366 // Permit subclasses to set arbitrary ResourceRequest pointer as |
| 356 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. | 367 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. |
| 357 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); | 368 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); |
| 358 #endif | 369 #endif |
| 359 | 370 |
| 360 private: | 371 private: |
| 361 struct ResourceRequestContainer; | 372 struct ResourceRequestContainer; |
| 362 | 373 |
| 363 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| | 374 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| |
| 364 // is non-null and |m_resourceRequest| points to the ResourceRequest | 375 // is non-null and |m_resourceRequest| points to the ResourceRequest |
| 365 // instance it contains. | 376 // instance it contains. |
| 366 std::unique_ptr<ResourceRequestContainer> owned_resource_request_; | 377 std::unique_ptr<ResourceRequestContainer> owned_resource_request_; |
| 367 | 378 |
| 368 // Should never be null. | 379 // Should never be null. |
| 369 ResourceRequest* resource_request_; | 380 ResourceRequest* resource_request_; |
| 370 }; | 381 }; |
| 371 | 382 |
| 372 } // namespace blink | 383 } // namespace blink |
| 373 | 384 |
| 374 #endif | 385 #endif |
| OLD | NEW |