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

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

Issue 985663002: Implement ServiceWorkerRegistration related DevTools events [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 5 years, 9 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 "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 25 matching lines...) Expand all
36 message_level(message_level), 36 message_level(message_level),
37 message(message), 37 message(message),
38 line_number(line_number), 38 line_number(line_number),
39 source_url(source_url) {} 39 source_url(source_url) {}
40 const int source_identifier; 40 const int source_identifier;
41 const int message_level; 41 const int message_level;
42 const base::string16 message; 42 const base::string16 message;
43 const int line_number; 43 const int line_number;
44 const GURL source_url; 44 const GURL source_url;
45 }; 45 };
46 virtual void OnWorkerStarted(int64 version_id, 46 virtual void OnRunningStateChanged(int64 version_id) {}
47 int process_id,
48 int thread_id) {}
49 virtual void OnWorkerStopped(int64 version_id,
50 int process_id,
51 int thread_id) {}
52 virtual void OnVersionStateChanged(int64 version_id) {} 47 virtual void OnVersionStateChanged(int64 version_id) {}
53 virtual void OnErrorReported(int64 version_id, 48 virtual void OnErrorReported(int64 version_id,
54 int process_id, 49 int process_id,
55 int thread_id, 50 int thread_id,
56 const ErrorInfo& info) {} 51 const ErrorInfo& info) {}
57 virtual void OnReportConsoleMessage(int64 version_id, 52 virtual void OnReportConsoleMessage(int64 version_id,
58 int process_id, 53 int process_id,
59 int thread_id, 54 int thread_id,
60 const ConsoleMessage& message) {} 55 const ConsoleMessage& message) {}
61 virtual void OnRegistrationStored(const GURL& pattern) {} 56 virtual void OnRegistrationStored(int64 registration_id,
57 const GURL& pattern) {}
62 virtual void OnRegistrationDeleted(int64 registration_id, 58 virtual void OnRegistrationDeleted(int64 registration_id,
63 const GURL& pattern) {} 59 const GURL& pattern) {}
64 60
65 // Notified when the storage corruption recovery is completed and all stored 61 // Notified when the storage corruption recovery is completed and all stored
66 // data is wiped out. 62 // data is wiped out.
67 virtual void OnStorageWiped() {} 63 virtual void OnStorageWiped() {}
68 64
69 protected: 65 protected:
70 virtual ~ServiceWorkerContextObserver() {} 66 virtual ~ServiceWorkerContextObserver() {}
71 }; 67 };
72 68
73 } // namespace content 69 } // namespace content
74 70
75 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ 71 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698