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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.cc

Issue 2138263002: Revert of Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/renderer/renderer_blink_platform_impl.cc ('k') | services/navigation/BUILD.gn » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/renderer/service_worker/service_worker_context_client.h" 5 #include "content/renderer/service_worker/service_worker_context_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 25 matching lines...) Expand all
36 #include "content/public/renderer/content_renderer_client.h" 36 #include "content/public/renderer/content_renderer_client.h"
37 #include "content/public/renderer/document_state.h" 37 #include "content/public/renderer/document_state.h"
38 #include "content/renderer/background_sync/background_sync_client_impl.h" 38 #include "content/renderer/background_sync/background_sync_client_impl.h"
39 #include "content/renderer/devtools/devtools_agent.h" 39 #include "content/renderer/devtools/devtools_agent.h"
40 #include "content/renderer/render_thread_impl.h" 40 #include "content/renderer/render_thread_impl.h"
41 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" 41 #include "content/renderer/service_worker/embedded_worker_dispatcher.h"
42 #include "content/renderer/service_worker/service_worker_type_util.h" 42 #include "content/renderer/service_worker/service_worker_type_util.h"
43 #include "ipc/ipc_message.h" 43 #include "ipc/ipc_message.h"
44 #include "ipc/ipc_message_macros.h" 44 #include "ipc/ipc_message_macros.h"
45 #include "mojo/public/cpp/bindings/interface_request.h" 45 #include "mojo/public/cpp/bindings/interface_request.h"
46 #include "services/shell/public/cpp/interface_provider.h"
47 #include "services/shell/public/cpp/interface_registry.h"
48 #include "third_party/WebKit/public/platform/URLConversion.h" 46 #include "third_party/WebKit/public/platform/URLConversion.h"
49 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 47 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
50 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 48 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
51 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 49 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
52 #include "third_party/WebKit/public/platform/WebString.h" 50 #include "third_party/WebKit/public/platform/WebString.h"
53 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegi stration.h" 51 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegi stration.h"
54 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onData.h" 52 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onData.h"
55 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerClientQueryOptions.h" 53 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerClientQueryOptions.h"
56 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerRequest.h" 54 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerRequest.h"
57 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponse.h" 55 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponse.h"
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 } 1034 }
1037 1035
1038 base::WeakPtr<ServiceWorkerContextClient> 1036 base::WeakPtr<ServiceWorkerContextClient>
1039 ServiceWorkerContextClient::GetWeakPtr() { 1037 ServiceWorkerContextClient::GetWeakPtr() {
1040 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); 1038 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread());
1041 DCHECK(context_); 1039 DCHECK(context_);
1042 return context_->weak_factory.GetWeakPtr(); 1040 return context_->weak_factory.GetWeakPtr();
1043 } 1041 }
1044 1042
1045 } // namespace content 1043 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | services/navigation/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698