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 "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 private: | 33 private: |
34 class OperationProxy; | 34 class OperationProxy; |
35 | 35 |
36 virtual ~ServiceWorkerInternalsUI(); | 36 virtual ~ServiceWorkerInternalsUI(); |
37 void AddContextFromStoragePartition(StoragePartition* partition); | 37 void AddContextFromStoragePartition(StoragePartition* partition); |
38 | 38 |
39 // Called from Javascript. | 39 // Called from Javascript. |
40 void GetAllRegistrations(const base::ListValue* args); | 40 void GetAllRegistrations(const base::ListValue* args); |
41 void StartWorker(const base::ListValue* args); | 41 void StartWorker(const base::ListValue* args); |
42 void StopWorker(const base::ListValue* args); | 42 void StopWorker(const base::ListValue* args); |
| 43 void DispatchSyncEventToWorker(const base::ListValue* args); |
43 void Unregister(const base::ListValue* args); | 44 void Unregister(const base::ListValue* args); |
44 | 45 |
45 bool GetRegistrationInfo( | 46 bool GetRegistrationInfo( |
46 const base::ListValue* args, | 47 const base::ListValue* args, |
47 base::FilePath* partition_path, | 48 base::FilePath* partition_path, |
48 GURL* scope, | 49 GURL* scope, |
49 scoped_refptr<ServiceWorkerContextWrapper>* context) const; | 50 scoped_refptr<ServiceWorkerContextWrapper>* context) const; |
50 }; | 51 }; |
51 | 52 |
52 } // namespace content | 53 } // namespace content |
53 | 54 |
54 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ | 55 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ |
OLD | NEW |