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

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

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check the |callbacks| for nullptr and use explicit delete. Created 4 years, 8 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 | « no previous file | content/renderer/service_worker/service_worker_context_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 // Called on the main thread. 153 // Called on the main thread.
154 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( 154 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
155 blink::WebDataSource* data_source) override; 155 blink::WebDataSource* data_source) override;
156 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; 156 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override;
157 157
158 void postMessageToClient( 158 void postMessageToClient(
159 const blink::WebString& uuid, 159 const blink::WebString& uuid,
160 const blink::WebString& message, 160 const blink::WebString& message,
161 blink::WebMessagePortChannelArray* channels) override; 161 blink::WebMessagePortChannelArray* channels) override;
162 void postMessageToCrossOriginClient(
163 const blink::WebCrossOriginServiceWorkerClient&,
164 const blink::WebString&,
165 blink::WebMessagePortChannelArray*) override;
162 void focus(const blink::WebString& uuid, 166 void focus(const blink::WebString& uuid,
163 blink::WebServiceWorkerClientCallbacks*) override; 167 blink::WebServiceWorkerClientCallbacks*) override;
164 void navigate(const blink::WebString& uuid, 168 void navigate(const blink::WebString& uuid,
165 const blink::WebURL&, 169 const blink::WebURL&,
166 blink::WebServiceWorkerClientCallbacks*) override; 170 blink::WebServiceWorkerClientCallbacks*) override;
167 void skipWaiting( 171 void skipWaiting(
168 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; 172 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override;
169 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; 173 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override;
170 void registerForeignFetchScopes( 174 void registerForeignFetchScopes(
171 const blink::WebVector<blink::WebURL>& sub_scopes, 175 const blink::WebVector<blink::WebURL>& sub_scopes,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Initialized on the worker thread in workerContextStarted and 258 // Initialized on the worker thread in workerContextStarted and
255 // destructed on the worker thread in willDestroyWorkerContext. 259 // destructed on the worker thread in willDestroyWorkerContext.
256 scoped_ptr<WorkerContextData> context_; 260 scoped_ptr<WorkerContextData> context_;
257 261
258 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 262 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
259 }; 263 };
260 264
261 } // namespace content 265 } // namespace content
262 266
263 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 267 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698