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

Side by Side Diff: content/renderer/service_worker/service_worker_type_converters.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
« no previous file with comments | « content/renderer/service_worker/service_worker_type_converters.h ('k') | no next file » | 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/common/service_worker/service_worker_type_converters.h" 5 #include "content/renderer/service_worker/service_worker_type_converters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 // TODO(iclelland): Make these enums equivalent so that conversion can be a 11 // TODO(iclelland): Make these enums equivalent so that conversion can be a
12 // static cast. 12 // static cast.
13 content::ServiceWorkerStatusCode 13 content::ServiceWorkerStatusCode
14 TypeConverter<content::ServiceWorkerStatusCode, 14 TypeConverter<content::ServiceWorkerStatusCode,
15 blink::mojom::ServiceWorkerEventStatus>:: 15 blink::mojom::ServiceWorkerEventStatus>::
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 input->additional_display_items[i]); 120 input->additional_display_items[i]);
121 } 121 }
122 122
123 output.stringifiedData = 123 output.stringifiedData =
124 blink::WebString::fromUTF8(input->method_data->stringified_data); 124 blink::WebString::fromUTF8(input->method_data->stringified_data);
125 125
126 return output; 126 return output;
127 } 127 }
128 128
129 } // namespace 129 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/service_worker/service_worker_type_converters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698