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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 133 } |
134 | 134 |
135 void WebSharedWorkerImpl::InitializeLoader(bool data_saver_enabled) { | 135 void WebSharedWorkerImpl::InitializeLoader(bool data_saver_enabled) { |
136 DCHECK(IsMainThread()); | 136 DCHECK(IsMainThread()); |
137 | 137 |
138 // Create 'shadow page'. This page is never displayed, it is used to proxy the | 138 // Create 'shadow page'. This page is never displayed, it is used to proxy the |
139 // loading requests from the worker context to the rest of WebKit and Chromium | 139 // loading requests from the worker context to the rest of WebKit and Chromium |
140 // infrastructure. | 140 // infrastructure. |
141 DCHECK(!web_view_); | 141 DCHECK(!web_view_); |
142 web_view_ = WebFactory::GetInstance().CreateWebViewBase( | 142 web_view_ = WebFactory::GetInstance().CreateWebViewBase( |
143 nullptr, kWebPageVisibilityStateVisible); | 143 nullptr, kWebPageVisibilityStateVisible, nullptr); |
144 // FIXME: http://crbug.com/363843. This needs to find a better way to | 144 // FIXME: http://crbug.com/363843. This needs to find a better way to |
145 // not create graphics layers. | 145 // not create graphics layers. |
146 web_view_->GetSettings()->SetAcceleratedCompositingEnabled(false); | 146 web_view_->GetSettings()->SetAcceleratedCompositingEnabled(false); |
147 web_view_->GetSettings()->SetDataSaverEnabled(data_saver_enabled); | 147 web_view_->GetSettings()->SetDataSaverEnabled(data_saver_enabled); |
148 // FIXME: Settings information should be passed to the Worker process from | 148 // FIXME: Settings information should be passed to the Worker process from |
149 // Browser process when the worker is created (similar to | 149 // Browser process when the worker is created (similar to |
150 // RenderThread::OnCreateNewView). | 150 // RenderThread::OnCreateNewView). |
151 main_frame_ = WebFactory::GetInstance().CreateWebLocalFrameBase( | 151 main_frame_ = WebFactory::GetInstance().CreateWebLocalFrameBase( |
152 WebTreeScopeType::kDocument, this, | 152 WebTreeScopeType::kDocument, this, |
153 Platform::Current()->GetInterfaceProvider(), nullptr); | 153 Platform::Current()->GetInterfaceProvider(), nullptr); |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 devtools_agent->DispatchOnInspectorBackend(session_id, call_id, method, | 450 devtools_agent->DispatchOnInspectorBackend(session_id, call_id, method, |
451 message); | 451 message); |
452 } | 452 } |
453 } | 453 } |
454 | 454 |
455 WebSharedWorker* WebSharedWorker::Create(WebSharedWorkerClient* client) { | 455 WebSharedWorker* WebSharedWorker::Create(WebSharedWorkerClient* client) { |
456 return new WebSharedWorkerImpl(client); | 456 return new WebSharedWorkerImpl(client); |
457 } | 457 } |
458 | 458 |
459 } // namespace blink | 459 } // namespace blink |
OLD | NEW |