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

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

Issue 299693002: Add option to open the DevTools window for ServiceWorker on start in serviceworker-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 26 matching lines...) Expand all
37 private: 37 private:
38 class OperationProxy; 38 class OperationProxy;
39 class PartitionObserver; 39 class PartitionObserver;
40 40
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 GetOptions(const base::ListValue* args);
48 void SetOption(const base::ListValue* args);
47 void GetAllRegistrations(const base::ListValue* args); 49 void GetAllRegistrations(const base::ListValue* args);
48 void StartWorker(const base::ListValue* args); 50 void StartWorker(const base::ListValue* args);
49 void StopWorker(const base::ListValue* args); 51 void StopWorker(const base::ListValue* args);
50 void DispatchSyncEventToWorker(const base::ListValue* args); 52 void DispatchSyncEventToWorker(const base::ListValue* args);
51 void InspectWorker(const base::ListValue* args); 53 void InspectWorker(const base::ListValue* args);
52 void Unregister(const base::ListValue* args); 54 void Unregister(const base::ListValue* args);
53 55
54 bool GetRegistrationInfo( 56 bool GetRegistrationInfo(
55 const base::ListValue* args, 57 const base::ListValue* args,
56 base::FilePath* partition_path, 58 base::FilePath* partition_path,
57 GURL* scope, 59 GURL* scope,
58 scoped_refptr<ServiceWorkerContextWrapper>* context) const; 60 scoped_refptr<ServiceWorkerContextWrapper>* context) const;
59 61
60 base::ScopedPtrHashMap<uintptr_t, PartitionObserver> observers_; 62 base::ScopedPtrHashMap<uintptr_t, PartitionObserver> observers_;
61 int next_partition_id_; 63 int next_partition_id_;
62 }; 64 };
63 65
64 } // namespace content 66 } // namespace content
65 67
66 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_ 68 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INTERNALS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698