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

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

Issue 205033002: Browser side of new ServiceWorker 'sync' event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Kinuko comments Created 6 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 "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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698