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

Side by Side Diff: content/child/service_worker/web_service_worker_impl.cc

Issue 1764333002: Move WebRuntimeEnabledFeatures to platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing files. Created 4 years, 9 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
« no previous file with comments | « content/child/runtime_features.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/child/service_worker/web_service_worker_impl.h" 5 #include "content/child/service_worker/web_service_worker_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/child/service_worker/service_worker_dispatcher.h" 10 #include "content/child/service_worker/service_worker_dispatcher.h"
11 #include "content/child/service_worker/service_worker_handle_reference.h" 11 #include "content/child/service_worker/service_worker_handle_reference.h"
12 #include "content/child/thread_safe_sender.h" 12 #include "content/child/thread_safe_sender.h"
13 #include "content/child/webmessageportchannel_impl.h" 13 #include "content/child/webmessageportchannel_impl.h"
14 #include "content/common/service_worker/service_worker_messages.h" 14 #include "content/common/service_worker/service_worker_messages.h"
15 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h"
15 #include "third_party/WebKit/public/platform/WebString.h" 16 #include "third_party/WebKit/public/platform/WebString.h"
16 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerProxy.h" 17 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerProxy.h"
17 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
18 18
19 using blink::WebMessagePortChannel; 19 using blink::WebMessagePortChannel;
20 using blink::WebMessagePortChannelArray; 20 using blink::WebMessagePortChannelArray;
21 using blink::WebMessagePortChannelClient; 21 using blink::WebMessagePortChannelClient;
22 using blink::WebRuntimeFeatures; 22 using blink::WebRuntimeFeatures;
23 using blink::WebString; 23 using blink::WebString;
24 24
25 namespace content { 25 namespace content {
26 26
27 namespace { 27 namespace {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 WebServiceWorkerImpl::~WebServiceWorkerImpl() { 136 WebServiceWorkerImpl::~WebServiceWorkerImpl() {
137 ServiceWorkerDispatcher* dispatcher = 137 ServiceWorkerDispatcher* dispatcher =
138 ServiceWorkerDispatcher::GetThreadSpecificInstance(); 138 ServiceWorkerDispatcher::GetThreadSpecificInstance();
139 if (dispatcher) 139 if (dispatcher)
140 dispatcher->RemoveServiceWorker(handle_ref_->handle_id()); 140 dispatcher->RemoveServiceWorker(handle_ref_->handle_id());
141 } 141 }
142 142
143 } // namespace content 143 } // namespace content
OLDNEW
« no previous file with comments | « content/child/runtime_features.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698