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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: rebase Created 3 years, 8 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "WebLocalizedString.h" 48 #include "WebLocalizedString.h"
49 #include "WebMessagePortChannel.h" 49 #include "WebMessagePortChannel.h"
50 #include "WebPlatformEventType.h" 50 #include "WebPlatformEventType.h"
51 #include "WebSize.h" 51 #include "WebSize.h"
52 #include "WebSpeechSynthesizer.h" 52 #include "WebSpeechSynthesizer.h"
53 #include "WebStorageQuotaCallbacks.h" 53 #include "WebStorageQuotaCallbacks.h"
54 #include "WebStorageQuotaType.h" 54 #include "WebStorageQuotaType.h"
55 #include "WebString.h" 55 #include "WebString.h"
56 #include "WebURLError.h" 56 #include "WebURLError.h"
57 #include "WebVector.h" 57 #include "WebVector.h"
58 #include "WebWorkerFetchContext.h"
58 #include "base/metrics/user_metrics_action.h" 59 #include "base/metrics/user_metrics_action.h"
59 #include "cc/resources/shared_bitmap.h" 60 #include "cc/resources/shared_bitmap.h"
60 #include "cc/surfaces/frame_sink_id.h" 61 #include "cc/surfaces/frame_sink_id.h"
61 #include "mojo/public/cpp/system/message_pipe.h" 62 #include "mojo/public/cpp/system/message_pipe.h"
62 63
63 namespace gpu { 64 namespace gpu {
64 class GpuMemoryBufferManager; 65 class GpuMemoryBufferManager;
65 } 66 }
66 67
67 namespace service_manager { 68 namespace service_manager {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 int64_t response_time, 353 int64_t response_time,
353 const char* data, 354 const char* data,
354 size_t data_size, 355 size_t data_size,
355 const blink::WebSecurityOrigin& cache_storage_origin, 356 const blink::WebSecurityOrigin& cache_storage_origin,
356 const WebString& cache_storage_cache_name) {} 357 const WebString& cache_storage_cache_name) {}
357 358
358 virtual WebURLError CancelledError(const WebURL&) const { 359 virtual WebURLError CancelledError(const WebURL&) const {
359 return WebURLError(); 360 return WebURLError();
360 } 361 }
361 362
363 // Returns a new WebWorkerFetchContext for a dedicated (or shared) worker.
364 // Returns nullptr if off-main-thread-fetch is disabled.
365 virtual std::unique_ptr<WebWorkerFetchContext> CreateWorkerFetchContext() {
366 return nullptr;
367 }
368
362 // Plugins ------------------------------------------------------------- 369 // Plugins -------------------------------------------------------------
363 370
364 // If refresh is true, then cached information should not be used to 371 // If refresh is true, then cached information should not be used to
365 // satisfy this call. mainFrameOrigin is used by the browser process to 372 // satisfy this call. mainFrameOrigin is used by the browser process to
366 // filter plugins from the plugin list based on content settings. 373 // filter plugins from the plugin list based on content settings.
367 virtual void GetPluginList(bool refresh, 374 virtual void GetPluginList(bool refresh,
368 const WebSecurityOrigin& main_frame_origin, 375 const WebSecurityOrigin& main_frame_origin,
369 WebPluginListBuilder*) {} 376 WebPluginListBuilder*) {}
370 377
371 // Public Suffix List -------------------------------------------------- 378 // Public Suffix List --------------------------------------------------
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 protected: 721 protected:
715 Platform(); 722 Platform();
716 virtual ~Platform() {} 723 virtual ~Platform() {}
717 724
718 WebThread* main_thread_; 725 WebThread* main_thread_;
719 }; 726 };
720 727
721 } // namespace blink 728 } // namespace blink
722 729
723 #endif 730 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698