OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 virtual ~ServiceWorkerInternalsUI(); | 41 virtual ~ServiceWorkerInternalsUI(); |
42 void AddContextFromStoragePartition(StoragePartition* partition); | 42 void AddContextFromStoragePartition(StoragePartition* partition); |
43 | 43 |
44 void RemoveObserverFromStoragePartition(StoragePartition* partition); | 44 void RemoveObserverFromStoragePartition(StoragePartition* partition); |
45 | 45 |
46 // Called from Javascript. | 46 // Called from Javascript. |
47 void GetAllRegistrations(const base::ListValue* args); | 47 void GetAllRegistrations(const base::ListValue* args); |
48 void StartWorker(const base::ListValue* args); | 48 void StartWorker(const base::ListValue* args); |
49 void StopWorker(const base::ListValue* args); | 49 void StopWorker(const base::ListValue* args); |
50 void DispatchSyncEventToWorker(const base::ListValue* args); | 50 void DispatchSyncEventToWorker(const base::ListValue* args); |
| 51 void InspectWorker(const base::ListValue* args); |
51 void Unregister(const base::ListValue* args); | 52 void Unregister(const base::ListValue* args); |
52 | 53 |
53 bool GetRegistrationInfo( | 54 bool GetRegistrationInfo( |
54 const base::ListValue* args, | 55 const base::ListValue* args, |
55 base::FilePath* partition_path, | 56 base::FilePath* partition_path, |
56 GURL* scope, | 57 GURL* scope, |
57 scoped_refptr<ServiceWorkerContextWrapper>* context) const; | 58 scoped_refptr<ServiceWorkerContextWrapper>* context) const; |
58 | 59 |
59 base::ScopedPtrHashMap<uintptr_t, PartitionObserver> observers_; | 60 base::ScopedPtrHashMap<uintptr_t, PartitionObserver> observers_; |
60 int next_partition_id_; | 61 int next_partition_id_; |
61 }; | 62 }; |
62 | 63 |
63 } // namespace content | 64 } // namespace content |
64 | 65 |
65 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ | 66 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ |
OLD | NEW |