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

Side by Side Diff: content/browser/service_worker/service_worker_context_observer.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 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_CONTEXT_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/service_worker/service_worker_version.h" 10 #include "content/browser/service_worker/service_worker_version.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 base::Time script_response_time, 60 base::Time script_response_time,
61 base::Time script_last_modified) {} 61 base::Time script_last_modified) {}
62 virtual void OnErrorReported(int64 version_id, 62 virtual void OnErrorReported(int64 version_id,
63 int process_id, 63 int process_id,
64 int thread_id, 64 int thread_id,
65 const ErrorInfo& info) {} 65 const ErrorInfo& info) {}
66 virtual void OnReportConsoleMessage(int64 version_id, 66 virtual void OnReportConsoleMessage(int64 version_id,
67 int process_id, 67 int process_id,
68 int thread_id, 68 int thread_id,
69 const ConsoleMessage& message) {} 69 const ConsoleMessage& message) {}
70 virtual void OnControlleeAdded(int64 version_id,
71 const std::string& uuid,
72 int process_id,
73 int route_id,
74 ServiceWorkerProviderType type) {}
75 virtual void OnControlleeRemoved(int64 version_id, const std::string& uuid) {}
70 virtual void OnRegistrationStored(int64 registration_id, 76 virtual void OnRegistrationStored(int64 registration_id,
71 const GURL& pattern) {} 77 const GURL& pattern) {}
72 virtual void OnRegistrationDeleted(int64 registration_id, 78 virtual void OnRegistrationDeleted(int64 registration_id,
73 const GURL& pattern) {} 79 const GURL& pattern) {}
74 80
75 // Notified when the storage corruption recovery is completed and all stored 81 // Notified when the storage corruption recovery is completed and all stored
76 // data is wiped out. 82 // data is wiped out.
77 virtual void OnStorageWiped() {} 83 virtual void OnStorageWiped() {}
78 84
79 protected: 85 protected:
80 virtual ~ServiceWorkerContextObserver() {} 86 virtual ~ServiceWorkerContextObserver() {}
81 }; 87 };
82 88
83 } // namespace content 89 } // namespace content
84 90
85 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ 91 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698