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

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

Issue 1149383004: [3/5 chromium] Shows the clients which are controlled by ServiceWorker in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated dcheng's comment Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CONTEXT_WATCHER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 base::Time script_response_time, 77 base::Time script_response_time,
78 base::Time script_last_modified) override; 78 base::Time script_last_modified) override;
79 void OnErrorReported(int64 version_id, 79 void OnErrorReported(int64 version_id,
80 int process_id, 80 int process_id,
81 int thread_id, 81 int thread_id,
82 const ErrorInfo& info) override; 82 const ErrorInfo& info) override;
83 void OnReportConsoleMessage(int64 version_id, 83 void OnReportConsoleMessage(int64 version_id,
84 int process_id, 84 int process_id,
85 int thread_id, 85 int thread_id,
86 const ConsoleMessage& message) override; 86 const ConsoleMessage& message) override;
87 void OnControlleeAdded(int64 version_id,
88 const std::string& uuid,
89 int process_id,
90 int route_id,
91 ServiceWorkerProviderType type) override;
92 void OnControlleeRemoved(int64 version_id, const std::string& uuid) override;
87 void OnRegistrationStored(int64 registration_id, 93 void OnRegistrationStored(int64 registration_id,
88 const GURL& pattern) override; 94 const GURL& pattern) override;
89 void OnRegistrationDeleted(int64 registration_id, 95 void OnRegistrationDeleted(int64 registration_id,
90 const GURL& pattern) override; 96 const GURL& pattern) override;
91 97
92 base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerVersionInfo>> 98 base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerVersionInfo>>
93 version_info_map_; 99 version_info_map_;
94 scoped_refptr<ServiceWorkerContextWrapper> context_; 100 scoped_refptr<ServiceWorkerContextWrapper> context_;
95 WorkerRegistrationUpdatedCallback registration_callback_; 101 WorkerRegistrationUpdatedCallback registration_callback_;
96 WorkerVersionUpdatedCallback version_callback_; 102 WorkerVersionUpdatedCallback version_callback_;
97 WorkerErrorReportedCallback error_callback_; 103 WorkerErrorReportedCallback error_callback_;
98 }; 104 };
99 105
100 } // namespace content 106 } // namespace content
101 107
102 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ 108 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698