Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 RedirectStatus GetRedirectStatus() const { return redirect_status_; } 311 RedirectStatus GetRedirectStatus() const { return redirect_status_; }
312 312
313 void SetNavigationStartTime(double); 313 void SetNavigationStartTime(double);
314 double NavigationStartTime() const { return navigation_start_; } 314 double NavigationStartTime() const { return navigation_start_; }
315 315
316 void SetIsSameDocumentNavigation(bool is_same_document) { 316 void SetIsSameDocumentNavigation(bool is_same_document) {
317 is_same_document_navigation_ = is_same_document; 317 is_same_document_navigation_ = is_same_document;
318 } 318 }
319 bool IsSameDocumentNavigation() const { return is_same_document_navigation_; } 319 bool IsSameDocumentNavigation() const { return is_same_document_navigation_; }
320 320
321 void SetIsMojoIPCForced(bool is_mojo_ipc_forced) {
322 is_mojo_ipc_forced_ = is_mojo_ipc_forced;
323 }
324 bool IsMojoIPCForced() const { return is_mojo_ipc_forced_; }
325
321 private: 326 private:
322 const CacheControlHeader& GetCacheControlHeader() const; 327 const CacheControlHeader& GetCacheControlHeader() const;
323 328
324 bool NeedsHTTPOrigin() const; 329 bool NeedsHTTPOrigin() const;
325 330
326 KURL url_; 331 KURL url_;
327 WebCachePolicy cache_policy_; 332 WebCachePolicy cache_policy_;
328 double timeout_interval_; // 0 is a magic value for platform default on 333 double timeout_interval_; // 0 is a magic value for platform default on
329 // platforms that have one. 334 // platforms that have one.
330 KURL first_party_for_cookies_; 335 KURL first_party_for_cookies_;
(...skipping 30 matching lines...) Expand all
361 bool is_same_document_navigation_; 366 bool is_same_document_navigation_;
362 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; 367 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
363 368
364 mutable CacheControlHeader cache_control_header_cache_; 369 mutable CacheControlHeader cache_control_header_cache_;
365 370
366 static double default_timeout_interval_; 371 static double default_timeout_interval_;
367 372
368 RedirectStatus redirect_status_; 373 RedirectStatus redirect_status_;
369 374
370 double navigation_start_ = 0; 375 double navigation_start_ = 0;
376
377 bool is_mojo_ipc_forced_ = false;
371 }; 378 };
372 379
373 struct CrossThreadResourceRequestData { 380 struct CrossThreadResourceRequestData {
374 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); 381 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData);
375 USING_FAST_MALLOC(CrossThreadResourceRequestData); 382 USING_FAST_MALLOC(CrossThreadResourceRequestData);
376 383
377 public: 384 public:
378 CrossThreadResourceRequestData() {} 385 CrossThreadResourceRequestData() {}
379 KURL url_; 386 KURL url_;
380 387
(...skipping 29 matching lines...) Expand all
410 bool check_for_browser_side_navigation_; 417 bool check_for_browser_side_navigation_;
411 double ui_start_time_; 418 double ui_start_time_;
412 bool is_external_request_; 419 bool is_external_request_;
413 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; 420 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_;
414 ResourceRequest::RedirectStatus redirect_status_; 421 ResourceRequest::RedirectStatus redirect_status_;
415 }; 422 };
416 423
417 } // namespace blink 424 } // namespace blink
418 425
419 #endif // ResourceRequest_h 426 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698