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

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

Issue 2678273011: Move service_worker_type_converters to content/renderer to avoid WebString() usage in browser (Closed)
Patch Set: move _type_converter security OWNERS entry to renderer/ too Created 3 years, 10 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 // 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 20 matching lines...) Expand all
31 #include "content/child/thread_safe_sender.h" 31 #include "content/child/thread_safe_sender.h"
32 #include "content/child/web_data_consumer_handle_impl.h" 32 #include "content/child/web_data_consumer_handle_impl.h"
33 #include "content/child/web_url_loader_impl.h" 33 #include "content/child/web_url_loader_impl.h"
34 #include "content/child/webmessageportchannel_impl.h" 34 #include "content/child/webmessageportchannel_impl.h"
35 #include "content/common/devtools_messages.h" 35 #include "content/common/devtools_messages.h"
36 #include "content/common/message_port_messages.h" 36 #include "content/common/message_port_messages.h"
37 #include "content/common/service_worker/embedded_worker_messages.h" 37 #include "content/common/service_worker/embedded_worker_messages.h"
38 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" 38 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h"
39 #include "content/common/service_worker/service_worker_messages.h" 39 #include "content/common/service_worker/service_worker_messages.h"
40 #include "content/common/service_worker/service_worker_status_code.h" 40 #include "content/common/service_worker/service_worker_status_code.h"
41 #include "content/common/service_worker/service_worker_type_converters.h"
42 #include "content/common/service_worker/service_worker_utils.h" 41 #include "content/common/service_worker/service_worker_utils.h"
43 #include "content/public/common/push_event_payload.h" 42 #include "content/public/common/push_event_payload.h"
44 #include "content/public/common/referrer.h" 43 #include "content/public/common/referrer.h"
45 #include "content/public/renderer/content_renderer_client.h" 44 #include "content/public/renderer/content_renderer_client.h"
46 #include "content/public/renderer/document_state.h" 45 #include "content/public/renderer/document_state.h"
47 #include "content/renderer/devtools/devtools_agent.h" 46 #include "content/renderer/devtools/devtools_agent.h"
48 #include "content/renderer/render_thread_impl.h" 47 #include "content/renderer/render_thread_impl.h"
49 #include "content/renderer/service_worker/embedded_worker_devtools_agent.h" 48 #include "content/renderer/service_worker/embedded_worker_devtools_agent.h"
50 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" 49 #include "content/renderer/service_worker/embedded_worker_dispatcher.h"
51 #include "content/renderer/service_worker/embedded_worker_instance_client_impl.h " 50 #include "content/renderer/service_worker/embedded_worker_instance_client_impl.h "
51 #include "content/renderer/service_worker/service_worker_type_converters.h"
52 #include "content/renderer/service_worker/service_worker_type_util.h" 52 #include "content/renderer/service_worker/service_worker_type_util.h"
53 #include "ipc/ipc_message.h" 53 #include "ipc/ipc_message.h"
54 #include "ipc/ipc_message_macros.h" 54 #include "ipc/ipc_message_macros.h"
55 #include "third_party/WebKit/public/platform/URLConversion.h" 55 #include "third_party/WebKit/public/platform/URLConversion.h"
56 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 56 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
57 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 57 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
58 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 58 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
59 #include "third_party/WebKit/public/platform/WebString.h" 59 #include "third_party/WebKit/public/platform/WebString.h"
60 #include "third_party/WebKit/public/platform/WebURLResponse.h" 60 #include "third_party/WebKit/public/platform/WebURLResponse.h"
61 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onData.h" 61 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onData.h"
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 } 1278 }
1279 1279
1280 base::WeakPtr<ServiceWorkerContextClient> 1280 base::WeakPtr<ServiceWorkerContextClient>
1281 ServiceWorkerContextClient::GetWeakPtr() { 1281 ServiceWorkerContextClient::GetWeakPtr() {
1282 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); 1282 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread());
1283 DCHECK(context_); 1283 DCHECK(context_);
1284 return context_->weak_factory.GetWeakPtr(); 1284 return context_->weak_factory.GetWeakPtr();
1285 } 1285 }
1286 1286
1287 } // namespace content 1287 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/service_worker/OWNERS ('k') | content/renderer/service_worker/service_worker_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698