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

Side by Side Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 2575523002: Prerender: Confirm ServiceWorkers are invoked for NoState Prefetch (Closed)
Patch Set: comments Created 3 years, 11 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 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void DeleteForOrigin(const GURL& origin, 101 void DeleteForOrigin(const GURL& origin,
102 const ResultCallback& callback) override; 102 const ResultCallback& callback) override;
103 void CheckHasServiceWorker( 103 void CheckHasServiceWorker(
104 const GURL& url, 104 const GURL& url,
105 const GURL& other_url, 105 const GURL& other_url,
106 const CheckHasServiceWorkerCallback& callback) override; 106 const CheckHasServiceWorkerCallback& callback) override;
107 void CountExternalRequestsForTest( 107 void CountExternalRequestsForTest(
108 const GURL& url, 108 const GURL& url,
109 const CountExternalRequestsCallback& callback) override; 109 const CountExternalRequestsCallback& callback) override;
110 void StopAllServiceWorkersForOrigin(const GURL& origin) override; 110 void StopAllServiceWorkersForOrigin(const GURL& origin) override;
111 void StopAllServiceWorkersForOriginWithCallback(
falken 2017/01/06 16:17:55 These functions are a bit misleading since Service
mattcary 2017/01/09 14:45:42 LMK if the new big-hammer seems better. Also if it
112 const GURL& origin,
113 const base::Closure& callback) override;
111 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; 114 void ClearAllServiceWorkersForTest(const base::Closure& callback) override;
112 void StartServiceWorkerForNavigationHint( 115 void StartServiceWorkerForNavigationHint(
113 const GURL& document_url, 116 const GURL& document_url,
114 blink::WebNavigationHintType type, 117 blink::WebNavigationHintType type,
115 int render_process_id, 118 int render_process_id,
116 const ResultCallback& callback) override; 119 const ResultCallback& callback) override;
117 bool StartingExternalRequest(int64_t service_worker_version_id, 120 bool StartingExternalRequest(int64_t service_worker_version_id,
118 const std::string& request_uuid) override; 121 const std::string& request_uuid) override;
119 bool FinishedExternalRequest(int64_t service_worker_version_id, 122 bool FinishedExternalRequest(int64_t service_worker_version_id,
120 const std::string& request_uuid) override; 123 const std::string& request_uuid) override;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 303
301 // Must be touched on the UI thread. 304 // Must be touched on the UI thread.
302 std::map<int, int> navigation_hint_task_count_per_process_; 305 std::map<int, int> navigation_hint_task_count_per_process_;
303 306
304 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 307 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
305 }; 308 };
306 309
307 } // namespace content 310 } // namespace content
308 311
309 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 312 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698