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

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

Issue 2917643002: PlzNavigate: Fix ServiceWorkerHandler not finding WebContents. (Closed)
Patch Set: Created 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h"
10 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
11 #include "base/time/time.h" 12 #include "base/time/time.h"
12 #include "content/browser/service_worker/service_worker_info.h" 13 #include "content/browser/service_worker/service_worker_info.h"
13 #include "content/browser/service_worker/service_worker_version.h" 14 #include "content/browser/service_worker/service_worker_version.h"
14 #include "url/gurl.h" 15 #include "url/gurl.h"
15 16
16 namespace content { 17 namespace content {
17 18
18 enum class EmbeddedWorkerStatus; 19 enum class EmbeddedWorkerStatus;
19 20
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int64_t version_id, 65 int64_t version_id,
65 base::Time script_response_time, 66 base::Time script_response_time,
66 base::Time script_last_modified) {} 67 base::Time script_last_modified) {}
67 virtual void OnErrorReported(int64_t version_id, 68 virtual void OnErrorReported(int64_t version_id,
68 int process_id, 69 int process_id,
69 int thread_id, 70 int thread_id,
70 const ErrorInfo& info) {} 71 const ErrorInfo& info) {}
71 virtual void OnReportConsoleMessage(int64_t version_id, 72 virtual void OnReportConsoleMessage(int64_t version_id,
72 int process_id, 73 int process_id,
73 int thread_id, 74 int thread_id,
74 const ConsoleMessage& message) {} 75 const ConsoleMessage& message) {}
falken 2017/06/01 07:37:27 Should we say: // |web_contents_getter| is only s
arthursonzogni 2017/06/01 08:14:08 Done.
75 virtual void OnControlleeAdded(int64_t version_id, 76 virtual void OnControlleeAdded(
76 const std::string& uuid, 77 int64_t version_id,
77 int process_id, 78 const std::string& uuid,
78 int route_id, 79 int process_id,
79 ServiceWorkerProviderType type) {} 80 int route_id,
81 const base::Callback<WebContents*(void)>& web_contents_getter,
82 ServiceWorkerProviderType type) {}
80 virtual void OnControlleeRemoved(int64_t version_id, 83 virtual void OnControlleeRemoved(int64_t version_id,
81 const std::string& uuid) {} 84 const std::string& uuid) {}
82 virtual void OnRegistrationStored(int64_t registration_id, 85 virtual void OnRegistrationStored(int64_t registration_id,
83 const GURL& pattern) {} 86 const GURL& pattern) {}
84 virtual void OnRegistrationDeleted(int64_t registration_id, 87 virtual void OnRegistrationDeleted(int64_t registration_id,
85 const GURL& pattern) {} 88 const GURL& pattern) {}
86 89
87 // Notified when the storage corruption recovery is completed and all stored 90 // Notified when the storage corruption recovery is completed and all stored
88 // data is wiped out. 91 // data is wiped out.
89 virtual void OnStorageWiped() {} 92 virtual void OnStorageWiped() {}
90 93
91 protected: 94 protected:
92 virtual ~ServiceWorkerContextObserver() {} 95 virtual ~ServiceWorkerContextObserver() {}
93 }; 96 };
94 97
95 } // namespace content 98 } // namespace content
96 99
97 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ 100 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698