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

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

Issue 1079923002: ServiceWorker: Stop exposing ServiceWorkerContextCore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void Unregister(const base::ListValue* args); 57 void Unregister(const base::ListValue* args);
58 void StartWorker(const base::ListValue* args); 58 void StartWorker(const base::ListValue* args);
59 59
60 bool GetServiceWorkerContext( 60 bool GetServiceWorkerContext(
61 int partition_id, 61 int partition_id,
62 scoped_refptr<ServiceWorkerContextWrapper>* context) const; 62 scoped_refptr<ServiceWorkerContextWrapper>* context) const;
63 void FindContext(int partition_id, 63 void FindContext(int partition_id,
64 StoragePartition** result_partition, 64 StoragePartition** result_partition,
65 StoragePartition* storage_partition) const; 65 StoragePartition* storage_partition) const;
66 66
67 void UnregisterWithScope(scoped_refptr<ServiceWorkerContextWrapper> context,
68 const GURL& scope,
69 const StatusCallback& callback) const;
70
67 base::ScopedPtrHashMap<uintptr_t, PartitionObserver> observers_; 71 base::ScopedPtrHashMap<uintptr_t, PartitionObserver> observers_;
68 int next_partition_id_; 72 int next_partition_id_;
69 }; 73 };
70 74
71 } // namespace content 75 } // namespace content
72 76
73 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ 77 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698