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

Side by Side Diff: content/public/browser/service_worker_context.h

Issue 2574663002: TabManager checks if ServiceWorker exists on the suspending process (Closed)
Patch Set: Created 4 years 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 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_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // thread. The |callback| will always be called on the UI thread. 138 // thread. The |callback| will always be called on the UI thread.
139 // This method can fail if: 139 // This method can fail if:
140 // * No Service Worker was registered for |document_url|. 140 // * No Service Worker was registered for |document_url|.
141 // * The specified render process is not suitable for loading |document_url|. 141 // * The specified render process is not suitable for loading |document_url|.
142 virtual void StartServiceWorkerForNavigationHint( 142 virtual void StartServiceWorkerForNavigationHint(
143 const GURL& document_url, 143 const GURL& document_url,
144 blink::WebNavigationHintType type, 144 blink::WebNavigationHintType type,
145 int render_process_id, 145 int render_process_id,
146 const ResultCallback& callback) = 0; 146 const ResultCallback& callback) = 0;
147 147
148 // Check if any service worker exists on the process specified by
149 // |render_process_id|. Must be called from the IO thread. Returns true if
150 // one or more service workers exist on the process and false if no worker
151 // resides.
152 virtual bool IsServiceWorkerExistsOnProcess(int render_process_id) = 0;
153
148 protected: 154 protected:
149 ServiceWorkerContext() {} 155 ServiceWorkerContext() {}
150 virtual ~ServiceWorkerContext() {} 156 virtual ~ServiceWorkerContext() {}
151 }; 157 };
152 158
153 } // namespace content 159 } // namespace content
154 160
155 #endif // CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_H_ 161 #endif // CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698